summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 69b2aa851e2b11c30a0931ffd9b02698c1741894 (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 0755 commissioning.fcgi $(DESTDIR)/usr/bin

.PHONY : clean

clean:
	-$(RM) $(OBJ)