annotate scn2k/Makefile.in @ 18:4d7486cb20a9

Sync with upstream
author thib
date Tue, 16 Sep 2008 15:30:03 +0000
parents 223b71206888
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
223b71206888 Initial import
thib
parents:
diff changeset
1 @SET_MAKE@
223b71206888 Initial import
thib
parents:
diff changeset
2 CC = @CC@
223b71206888 Initial import
thib
parents:
diff changeset
3 CXX = @CXX@
223b71206888 Initial import
thib
parents:
diff changeset
4 LD = @CC@
223b71206888 Initial import
thib
parents:
diff changeset
5 AR = ar
223b71206888 Initial import
thib
parents:
diff changeset
6 RANLIB = @RANLIB@
223b71206888 Initial import
thib
parents:
diff changeset
7
223b71206888 Initial import
thib
parents:
diff changeset
8 CFLAGS= -I.. $(LOCAL_DEF) @CFLAGS@ @DEFS@ @SDL_CFLAGS@ -pthread -O2
223b71206888 Initial import
thib
parents:
diff changeset
9 CXXFLAGS = $(CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
10 LDFLAGS = @LDFLAGS@ -ljpeg @SDL_LIBS@ -lSDL_mixer @SMPEG_LIBS@ @FT2_LIBS@ @LIBS@ -pthread
223b71206888 Initial import
thib
parents:
diff changeset
11
223b71206888 Initial import
thib
parents:
diff changeset
12 SRCS = scn2k_cmd.cc scn2k_text.cc scn2k_grp.cc scn2k_impl.cc
223b71206888 Initial import
thib
parents:
diff changeset
13
223b71206888 Initial import
thib
parents:
diff changeset
14 OBJS = ${SRCS:.cc=.o}
223b71206888 Initial import
thib
parents:
diff changeset
15
223b71206888 Initial import
thib
parents:
diff changeset
16 all: test libscn2k.a scn2kdump gandump
223b71206888 Initial import
thib
parents:
diff changeset
17
223b71206888 Initial import
thib
parents:
diff changeset
18 test: test.o $(OBJS)
223b71206888 Initial import
thib
parents:
diff changeset
19 $(LD) -o test test.o $(OBJS) ../window/libwindow.a ../music2/libmusic.a ../system/libsystem.a ../font/libfont.a $(LDFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
20
223b71206888 Initial import
thib
parents:
diff changeset
21 scn2kdump: scn2kdump.o
223b71206888 Initial import
thib
parents:
diff changeset
22 $(LD) -o scn2kdump scn2kdump.o ../system/libsystem.a $(LDFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
23
223b71206888 Initial import
thib
parents:
diff changeset
24 gandump: gandump.o
223b71206888 Initial import
thib
parents:
diff changeset
25 $(LD) -o gandump gandump.o $(LDFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
26
223b71206888 Initial import
thib
parents:
diff changeset
27 libscn2k.a: ${OBJS}
223b71206888 Initial import
thib
parents:
diff changeset
28 rm -f libscn2k.a
223b71206888 Initial import
thib
parents:
diff changeset
29 ${AR} clq libscn2k.a ${OBJS}
223b71206888 Initial import
thib
parents:
diff changeset
30 $(RANLIB) libscn2k.a
223b71206888 Initial import
thib
parents:
diff changeset
31
223b71206888 Initial import
thib
parents:
diff changeset
32 clean:
223b71206888 Initial import
thib
parents:
diff changeset
33 rm -f test libscn2k.a ${OBJS} *.bak *.core gandump scn2kdump
223b71206888 Initial import
thib
parents:
diff changeset
34
223b71206888 Initial import
thib
parents:
diff changeset
35 .c.o:
223b71206888 Initial import
thib
parents:
diff changeset
36 $(CC) -c $(CFLAGS) -o $@ $<
223b71206888 Initial import
thib
parents:
diff changeset
37
223b71206888 Initial import
thib
parents:
diff changeset
38 .cc.o:
223b71206888 Initial import
thib
parents:
diff changeset
39 $(CXX) -c $(CFLAGS) -o $@ $<
223b71206888 Initial import
thib
parents:
diff changeset
40