File: makerules.LINUX

package info (click to toggle)
powder 118%2Bdfsg1-1
  • links: PTS
  • area: non-free
  • in suites: buster
  • size: 10,528 kB
  • sloc: cpp: 55,308; java: 824; makefile: 541; sh: 260; objc: 245; ansic: 107; xml: 55; csh: 54
file content (21 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ifeq ($(CXXFLAGS),)
    CXXFLAGS=-O3
endif

.cpp.o:
	$(CXX) -DLINUX -I ../../port/sdl `sdl-config --cflags` -c $< -o $@ $(CXXFLAGS)

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) libstdc++.a
	ln -s `$(CXX) -print-file-name=libstdc++.a`
	$(CXX) -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS) $(LDFLAGS)

clean:
	$(RM) $(OFILES)
	$(RM) $(TARGET)