Project

General

Profile

Revision 489

cleaned up server makefile

View differences:

Makefile
1 1
# ColonetServer makefile
2 2

  
3
COLONYROOT = ../../../..
4

  
3 5
CC = g++
4 6
CFLAGS = -Wall -Wshadow -Wextra -g
5 7
VISIONFLAGS = -ggdb `pkg-config opencv --cflags --libs` 
......
16 18
COLONETHEADERFILES = includes/*.h
17 19

  
18 20
VPATH = ../lib:vision
19
INCLUDE_DIRS = ../lib ../../libwireless/lib includes vision
20
LIBRARY_DIRS = ../lib ../../libwireless/lib vision
21
INCLUDE_DIRS = $(COLONYROOT)/code/projects/colonet/common $(COLONYROOT)/code/projects/libwireless/lib includes vision
22
LIBRARY_DIRS = $(COLONYROOT)/code/projects/colonet/lib $(COLONYROOT)/code/projects/libwireless/lib vision
21 23

  
22 24
#this takes the include directory and puts a -I in front of each directory name before being used in a gcc statement
23 25
INCLUDE_DIRS_FOR_GCC = $(patsubst %, -I %, $(INCLUDE_DIRS))
......
32 34
	cd ../../libwireless/lib; make colonet
33 35
	make; ./ColonetServer
34 36

  
35
../../libwireless/lib/libwireless_colonet.a: ../../libwireless/lib/*.c ../../libwireless/lib/*.h
36
	cd ../../libwireless/lib; make colonet
37
vision/vision.o: vision/vision.c vision/vision.h
38
	cd vision
39
	make
37 40

  
38
ColonetServer: ../../libwireless/lib/libwireless_colonet.a $(COLONETCPPFILES) $(COLONETFILES) $(LOGGINGFILES) $(COLONETHEADERFILES)
41
$(COLONYROOT)/code/projects/libwireless/lib/libwireless_colonet.a: $(COLONYROOT)/code/projects/libwireless/lib/*.c $(COLONYROOT)/code/projects/libwireless/lib/*.h
42
	cd $(COLONYROOT)/code/projects/libwireless/lib; make colonet
43

  
44
ColonetServer: $(COLONYROOT)/code/projects/libwireless/lib/libwireless_colonet.a $(COLONETCPPFILES) $(COLONETFILES) $(LOGGINGFILES) $(COLONETHEADERFILES)
39 45
	@echo "-----------------------"
40 46
	@echo "---begin compilation---"
41 47
	@echo ""

Also available in: Unified diff