Subversion Repositories Projects

Rev

Rev 513 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
513 Brean 1
TARGET = UNIX
2
 
3
CPP  = g++
4
RM = rm -f
5
MAKE = make
6
 
7
CXXINCS = -I"./" -I"../"
8
CXXFLAGS = $(CXXINCS) -O3
9
 
524 Brean 10
LINKOBJ  = Kopter.o FlightLog.o Parser.o Communication.o Handler.o TestingCommunication.o
513 Brean 11
 
12
all: all-before $(LINKOBJ)
13
 
14
all-before: depend
15
 
16
depend:
17
	@$(CPP) $(CXXINCS) -MM *.cpp > depend
18
 
19
#kopter.o is only a header
20
Kopter.o: Kopter.h
21
 
22
#all other files have .cpp files
23
%.o : %.cpp
24
	$(CPP) $(CXXFLAGS) -c -o $@ $<
25
 
26
clean-custom:
27
 
28
clean: clean-custom
29
	${RM} $(LINKOBJ) depend *~ *.a
30