diff options
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 |