summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 68464d74b410e04cd80e30e155f95921f2a062fb (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

CFLAGS=-I.
DEPS = commission_func.h 
OBJ = fcgicommissioning.o commission_func.o
LIBS := -ljsoncpp -lfcgi++ -lfcgi

%.o: %.cc $(DEPS)
	$(CXX) -c -o $@ $< $(CFLAGS)

commissioning.fcgi: $(OBJ)
	$(CXX) $(LDFLAGS) -o $@ $^ $(CFLAGS) $(LIBS)

install:
	install -d $(DESTDIR)/usr/bin
	install -m 0777 commissioning.fcgi $(DESTDIR)/usr/bin

.PHONY : clean

clean:
	-$(RM) $(OBJ)