diff options
author | Patrick <Patrick.Murphy@multitech.com> | 2020-04-01 13:26:27 -0500 |
---|---|---|
committer | Patrick <Patrick.Murphy@multitech.com> | 2020-04-01 13:26:27 -0500 |
commit | a1558341bcbfbcb878726f5bd4b4dd6eda14d551 (patch) | |
tree | 0625cd8ded946d6fe675256d3056a1a685068428 /src | |
parent | 78178d911f0ede1776390b360af2ee0235e4fa53 (diff) | |
download | commissioning-a1558341bcbfbcb878726f5bd4b4dd6eda14d551.tar.gz commissioning-a1558341bcbfbcb878726f5bd4b4dd6eda14d551.tar.bz2 commissioning-a1558341bcbfbcb878726f5bd4b4dd6eda14d551.zip |
modified makefile format
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 27 | ||||
-rw-r--r-- | src/Makefile.am | 10 | ||||
-rw-r--r-- | src/fcgi_commission.cc (renamed from src/fcgi_commission.cpp) | 0 |
3 files changed, 10 insertions, 27 deletions
diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index a13fd64..0000000 --- a/src/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -ARCH=$(shell uname -m) - -CC := g++ -SRCDIR := . -BUILDDIR := $(ARCH) -DEPLOYDIR := deploy -# TARGET := $(DEPLOYDIR)/fcgi_commission_$(ARCH).fcgi - -SRCEXT := cpp -SOURCES := $(shell find $(SRCDIR) -type f -name *.$(SRCEXT)) -OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.o)) -CCFLAGS := -std=c++11 -g -Wall -Werror -pedantic -pedantic-errors -LIB := -ljsoncpp -lfcgi++ -lfcgi -lcurl -INC := -I - -S = "${WORKDIR}/git - -install: - mkdir -p $(DESTDIR)/sbin - cp fcgi_commission $(DESTDIR)/sbin - -fcgi_commission: $(OBJECTS) - $(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) /usr/sbin $(LIB) - -%.o: %.CC - $(CC) $(CCFLAGS) -c - diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..8a3784f --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,10 @@ +AUTOMAKE_OPTIONS = gnu +AM_CFLAGS = -Wall + +sbin_PROGRAMS = commission.fcgi +commission.fcgi_SOURCES = fcgi_commission.cc +commission.fcgi_SOURCES = -ljsoncpp -lrt -lfcgi++ -lfcgi + +install-exec-hook: + cd $(DESTDIR)$(sbindir) ../../sbin/commission.fcgi + rmdir $(DESTDIR)$(sbindir)
\ No newline at end of file diff --git a/src/fcgi_commission.cpp b/src/fcgi_commission.cc index bd082ff..bd082ff 100644 --- a/src/fcgi_commission.cpp +++ b/src/fcgi_commission.cc |