equal
deleted
inserted
replaced
2 ROOT=$(shell pwd)/.. |
2 ROOT=$(shell pwd)/.. |
3 endif |
3 endif |
4 |
4 |
5 include $(ROOT)/config.mk |
5 include $(ROOT)/config.mk |
6 |
6 |
|
7 ### single precision |
|
8 #RTLIBS=libs-float |
|
9 #CCFLAGS+=-fsingle-precision-constant |
|
10 |
|
11 ### double precision |
7 RTLIBS=libs-double |
12 RTLIBS=libs-double |
8 DEFS+=-DPYRIT_DOUBLE |
13 CCFLAGS+=-DPYRIT_DOUBLE |
9 |
14 |
10 |
15 |
11 ### Rules ### |
16 ### Rules ### |
12 %.o: %.cc |
17 %.o: %.cc |
13 $(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< $(DEFS) |
18 $(CXX) -c -o $@ $(CCFLAGS) $(SDL_CCFLAGS) $< |
14 |
19 |
15 %: %.o |
20 %: %.o |
16 $(CXX) -o $@ $(ROOT)/bin/$(RTLIBS)/*.o $< image.o $(LDFLAGS) $(SDL_LDFLAGS) -lpng |
21 $(CXX) -o $@ $(ROOT)/bin/$(RTLIBS)/*.o $< image.o $(LDFLAGS) $(SDL_LDFLAGS) -lpng |
17 |
22 |
18 ### Targets ### |
23 ### Targets ### |