File: Makefile

package info (click to toggle)
libsdl-sge 030809dfsg-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 968 kB
  • ctags: 861
  • sloc: cpp: 8,963; makefile: 158; ansic: 44
file content (47 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (7)
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
38
39
40
41
42
43
44
45
46
47
# Makefile for the SGE library examples

include ../Makefile.conf

CFLAGS += $(SGE_CFLAGS) -I./../
LIBS =-L./../ -lSGE $(SGE_LIBS)

TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly
C_TARGETS =

ifneq ($(USE_FT),n)
  TARGETS += basics blitting input alpha inputdeluxe
  ifeq ($(C_COMP),y)
    C_TARGETS = basics_c
  endif
endif

ifeq ($(USE_IMG),y)
  TARGETS += sfont
endif


OBJECTS = $(addsuffix .o, $(TARGETS))
C_OBJECTS = $(addsuffix .o, $(C_TARGETS))


all:	$(TARGETS) $(C_TARGETS) 

$(TARGETS):	%:%.o
	$(CXX) -o $@ $< $(LIBS)		

$(OBJECTS):	%.o:%.cpp
	$(CXX) $(CFLAGS) -c $< 	

strip:	all
	@strip $(TARGETS)

# The c example
$(C_TARGETS):	%:%.o
	$(CC) -o $@ $< $(LIBS)

$(C_OBJECTS):	%.o:%.c
	$(CC) $(CFLAGS) -c $<


clean:
	@rm -f *.o fire bitmapfont collision blib rotate basics blitting input alpha sfont sprite sprite2 inputdeluxe basics_c speedtest poly