File: Makefile.in

package info (click to toggle)
race 0.7.0-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,696 kB
  • ctags: 1,424
  • sloc: cpp: 9,026; makefile: 211
file content (37 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

prefix =	@prefix@
exec_prefix =	@exec_prefix@
datadir =	@datadir@
bindir =	@bindir@


all: race

clean:
	@echo "Cleaning project..."
	find build/ -name '*.o' -exec rm "{}" \;
	if [ -f race ]; then rm -f race; fi

distclean: clean
	rm -f config.log config.cache Makefile config.status

race:
	cd src && $(MAKE);

static:
	cd src && $(MAKE) static;

editor:
	cd editor && $(MAKE);
	

.build/%.o : %.cpp
	@echo "Compiling $<"
	-if [ ! -d ./build ]; then mkdir ./build; fi
	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -O3 -Wall $< -o $@

dep:
	cd src && $(MAKE) dep;

.PHONY: race editor