0
|
1 @SET_MAKE@
|
|
2 CC = @CC@
|
|
3 CXX = @CXX@
|
|
4 LD = @CXX@
|
|
5 RANLIB = @RANLIB@
|
|
6
|
|
7 CFLAGS= -I. $(LOCAL_DEF) @CFLAGS@ @DEFS@ @SDL_CFLAGS@ @SMPEG_CFLAGS@ @FT2_CFLAGS@ @X_CFLAGS@ -pthread -O2
|
|
8 CXXFLAGS = $(CFLAGS)
|
|
9 LDFLAGS = @LDFLAGS@ @FT2_LIBS@ @SDL_LIBS@ -lSDL_mixer @SMPEG_LIBS@ @X_LIBS@ @LIBS@ -pthread
|
|
10
|
|
11 SRCS = xlovesys.cc
|
|
12
|
|
13 OBJS = ${SRCS:.cc=.o}
|
|
14
|
|
15 all: xclannad
|
|
16
|
|
17 xclannad: xlovesys.o system/libsystem.a scn2k/libscn2k.a window/libwindow.a font/libfont.a music2/libmusic.a
|
|
18 $(LD) -o xclannad xlovesys.o system/libsystem.a scn2k/libscn2k.a window/libwindow.a font/libfont.a music2/libmusic.a $(LDFLAGS)
|
|
19
|
|
20 install: xclannad music2/nwatowav
|
|
21 mkdir -p /usr/local/bin
|
|
22 cp xclannad music2/nwatowav /usr/local/bin
|
|
23
|
|
24 clean:
|
|
25 rm -f xclannad xlovesys ${OBJS} *.bak
|
|
26 (cd font && $(MAKE) clean);
|
|
27 (cd system && $(MAKE) clean);
|
|
28 (cd window && $(MAKE) clean);
|
|
29 (cd music2 && $(MAKE) clean);
|
|
30 (cd scn2k && $(MAKE) clean);
|
|
31
|
|
32 music2/nwatowav:
|
|
33 (cd music2 && $(MAKE) nwatowav);
|
|
34
|
|
35 .c.o:
|
|
36 $(CC) -c $(CFLAGS) -o $@ $<
|
|
37
|
|
38 .cc.o:
|
|
39 $(CXX) -c $(CFLAGS) -o $@ $<
|
|
40
|
|
41 font/libfont.a: FORCE
|
|
42 cd font && $(MAKE) libfont.a
|
|
43
|
|
44 system/libsystem.a: FORCE
|
|
45 cd system && $(MAKE) libsystem.a
|
|
46
|
|
47 scn2k/libscn2k.a: FORCE
|
|
48 cd scn2k && $(MAKE) libscn2k.a
|
|
49
|
|
50 window/libwindow.a: FORCE
|
|
51 cd window && $(MAKE) libwindow.a
|
|
52
|
|
53 music2/libmusic.a: FORCE
|
|
54 cd music2 && $(MAKE) libmusic.a
|
|
55
|
|
56 FORCE:
|
|
57
|