File: makerules.LINUX

package info (click to toggle)
powder 106-1
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 5,864 kB
  • ctags: 2,972
  • sloc: cpp: 49,543; makefile: 523; objc: 245; sh: 169; ansic: 107; csh: 49
file content (17 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.cpp.o:
	g++ -O3 -DLINUX -I ../../port/sdl `sdl-config --cflags` -c $< -o $@

all: $(TARGET)

$(TARGET): $(OFILES)
	# This extra step is from:
	# http://www.trilithium.com/johan/2005/06/static-libstdc/
	# and is to try and ensure we end up with a static link
	# of stdc++.
	rm -f libstdc++.a
	#ln -s `g++ -print-file-name=libstdc++.a`
	g++ -O3 -L. -o $(TARGET) $(OFILES) `sdl-config --libs`

clean:
	rm -f *.o
	rm -f $(TARGET)