ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/RenegadeMapSelector/GNUmakefile
Revision: 76
Committed: 2003-03-13T14:13:02-08:00 (19 years, 10 months ago) by douglas
Original Path: trunk/RenegadeMapSelector/GNUmakefile
File size: 737 byte(s)
Log Message:
Added GNUmakefile.

File Contents

# User Rev Content
1 douglas 76 # Renegade Map Selector
2     #
3     # Douglas Thrift
4     #
5     # GNUmakefile
6    
7     CSRC = RenegadeMapSelector.cpp RenegadeConfig.cpp
8     HDRS = ${patsubst %.cpp, %.h, ${CSRC}}
9     OBJS = ${patsubst %.cpp, %.o, ${CSRC}}
10     EXEC = RenegadeMapSelector
11    
12     ifndef (CPPC)
13     CPPC = g++
14     endif
15     ifndef (CPPCOPT)
16     CPPCOPT =
17     endif
18     ifndef (CPPCDEP)
19     CPPCDEP = -MM
20     endif
21    
22     all: ${EXEC}
23    
24     ${EXEC}: ${OBJS}
25     ${CPPC} ${OBJS} -o ${EXEC} `pkg-config --libs gtk+-2.0`
26    
27     %.o:%.cpp
28     ${CPPC} ${CPPCOPT} $< -c `pkg-config --cflags gtk+-2.0`
29    
30     depend: ${CSRC} ${HDRS}
31     ${CPPC} ${CPPCDEP} ${CSRC} `pkg-config --cflags gtk+-2.0` > depend
32    
33     include depend
34    
35     clean:
36     - rm ${OBJS} ${EXEC} ${patsubst %, %.exe, ${EXEC}} core \
37     ${patsubst %, %.core, ${EXEC}} \
38     ${patsubst %, %.exe.stackdump, ${EXEC}} depend