blob: a13fd643e03b514fb7be81cbbd6e2833811b96ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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
|