restructuring
[iotcloud.git] / src / server / Makefile
index 9b6231bc67dc490b67c1b3a161839f7325fb7d8d..0818b4363622e8b8b69a3ba80f9dbba29ff8ab48 100644 (file)
@@ -1,6 +1,12 @@
-CPPFLAGS=-O0 -g
+CPPFLAGS=-O0 -g -Wall
 
 all: iotcloud.fcgi
 
-iotcloud.fcgi: iotcloud.cpp
-       g++ $(CPPFLAGS) -o iotcloud.fcgi iotcloud.cpp -lfcgi -lfcgi++
+iotcloud.fcgi: iotcloud.o iotquery.o
+       g++ $(CPPFLAGS) -o iotcloud.fcgi iotcloud.o iotquery.o -lfcgi -lfcgi++
+
+iotcloud.o: iotcloud.cpp iotquery.h
+       g++ $(CPPFLAGS) -c -o iotcloud.o iotcloud.cpp
+
+iotquery.o: iotquery.cpp iotquery.h
+       g++ $(CPPFLAGS) -c -o iotquery.o iotquery.cpp