equal
deleted
inserted
replaced
|
1 ############################################################################# |
|
2 # Qt Makefile - gencmap |
|
3 ############################################################################# |
|
4 |
|
5 ####### Directories |
|
6 |
|
7 BASEDIR = $(QTDIR) |
|
8 INCDIR = $(BASEDIR)/include |
|
9 LIBDIR = $(BASEDIR)/lib |
|
10 |
|
11 ####### Compiler |
|
12 |
|
13 CFLAGS = -O2 |
|
14 LFLAGS = -L$(LIBDIR) |
|
15 CC = gcc |
|
16 |
|
17 ####### Files |
|
18 |
|
19 SOURCES = gencmap.cpp |
|
20 OBJECTS = gencmap.o |
|
21 TARGET = gencmap |
|
22 |
|
23 ####### Implicit rules |
|
24 |
|
25 .SUFFIXES: |
|
26 .SUFFIXES: .cpp $(SUFFIXES) |
|
27 |
|
28 .cpp.o: |
|
29 $(CC) -c $(CFLAGS) -I$(INCDIR) $< |
|
30 |
|
31 ####### Build rules |
|
32 |
|
33 all: $(TARGET) |
|
34 |
|
35 $(TARGET): $(OBJECTS) |
|
36 $(CC) $(OBJECTS) -o $(TARGET) $(LFLAGS) |
|
37 |
|
38 depend: |
|
39 @makedepend -I$(INCDIR) $(SOURCES) 2> /dev/null |
|
40 |
|
41 clean: |
|
42 -rm -f *.o *.bak *~ *% #* |
|
43 -rm -f $(TARGET) |
|
44 |
|
45 |
|
46 # DO NOT DELETE THIS LINE -- make depend depends on it. |