0
|
1 @SET_MAKE@
|
|
2 CC = @CC@
|
|
3 CXX = @CXX@
|
|
4 LD = @CC@
|
|
5 AR = ar
|
|
6 RANLIB = @RANLIB@
|
|
7
|
|
8 CFLAGS= -I.. $(LOCAL_DEF) @CFLAGS@ @DEFS@ @SDL_CFLAGS@ -pthread -O2
|
|
9 CXXFLAGS = $(CFLAGS)
|
|
10 LDFLAGS = @LDFLAGS@ -ljpeg @SDL_LIBS@ -lSDL_mixer @SMPEG_LIBS@ @FT2_LIBS@ @LIBS@ -pthread
|
|
11
|
|
12 SRCS = scn2k_cmd.cc scn2k_text.cc scn2k_grp.cc scn2k_impl.cc
|
|
13
|
|
14 OBJS = ${SRCS:.cc=.o}
|
|
15
|
|
16 all: test libscn2k.a scn2kdump gandump
|
|
17
|
|
18 test: test.o $(OBJS)
|
|
19 $(LD) -o test test.o $(OBJS) ../window/libwindow.a ../music2/libmusic.a ../system/libsystem.a ../font/libfont.a $(LDFLAGS)
|
|
20
|
|
21 scn2kdump: scn2kdump.o
|
|
22 $(LD) -o scn2kdump scn2kdump.o ../system/libsystem.a $(LDFLAGS)
|
|
23
|
|
24 gandump: gandump.o
|
|
25 $(LD) -o gandump gandump.o $(LDFLAGS)
|
|
26
|
|
27 libscn2k.a: ${OBJS}
|
|
28 rm -f libscn2k.a
|
|
29 ${AR} clq libscn2k.a ${OBJS}
|
|
30 $(RANLIB) libscn2k.a
|
|
31
|
|
32 clean:
|
|
33 rm -f test libscn2k.a ${OBJS} *.bak *.core gandump scn2kdump
|
|
34
|
|
35 .c.o:
|
|
36 $(CC) -c $(CFLAGS) -o $@ $<
|
|
37
|
|
38 .cc.o:
|
|
39 $(CXX) -c $(CFLAGS) -o $@ $<
|
|
40
|