Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
# Makefile for the SGE library examples |
| 2 |
|
| 3 |
include ../Makefile.conf |
| 4 |
|
| 5 |
CFLAGS += $(SGE_CFLAGS) -I./../ |
| 6 |
LIBS =-L./../ -lSGE $(SGE_LIBS) |
| 7 |
|
| 8 |
TARGETS = fire bitmapfont collision blib rotate speedtest sprite sprite2 poly |
| 9 |
C_TARGETS = |
| 10 |
|
| 11 |
ifneq ($(USE_FT),n) |
| 12 |
TARGETS += basics blitting input alpha inputdeluxe |
| 13 |
ifeq ($(C_COMP),y) |
| 14 |
C_TARGETS = basics_c |
| 15 |
endif |
| 16 |
endif |
| 17 |
|
| 18 |
ifeq ($(USE_IMG),y) |
| 19 |
TARGETS += sfont |
| 20 |
endif |
| 21 |
|
| 22 |
|
| 23 |
OBJECTS = $(addsuffix .o, $(TARGETS)) |
| 24 |
C_OBJECTS = $(addsuffix .o, $(C_TARGETS)) |
| 25 |
|
| 26 |
|
| 27 |
all: $(TARGETS) $(C_TARGETS) |
| 28 |
|
| 29 |
$(TARGETS): %:%.o |
| 30 |
$(CXX) -o $@ $< $(LIBS) |
| 31 |
|
| 32 |
$(OBJECTS): %.o:%.cpp |
| 33 |
$(CXX) $(CFLAGS) -c $< |
| 34 |
|
| 35 |
strip: all |
| 36 |
@strip $(TARGETS) |
| 37 |
|
| 38 |
# The c example |
| 39 |
$(C_TARGETS): %:%.o |
| 40 |
$(CC) -o $@ $< $(LIBS) |
| 41 |
|
| 42 |
$(C_OBJECTS): %.o:%.c |
| 43 |
$(CC) $(CFLAGS) -c $< |
| 44 |
|
| 45 |
|
| 46 |
clean: |
| 47 |
@rm -f *.o fire bitmapfont collision blib rotate basics blitting input alpha sfont sprite sprite2 inputdeluxe basics_c speedtest poly |