-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.original
48 lines (30 loc) · 758 Bytes
/
Makefile.original
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
48
include config.mak
# CC = gcc
LD = g++
# CFLAGS = -O2
SDL_CFLAGS = `sdl-config --cflags`
LFLAGS =
SDL_LIBS = `sdl-config --libs`
FILES = Makefile
FILES_ORG = README README.ja
ZIPSRC = pmdmini`date +"%y%m%d"`.zip
TOUCH = touch -t `date +"%m%d0000"`
LIBS = fmgen/libfmgen.a pmdwin/libpmdwin.a
OBJS = sdlplay.o $(LIBS)
TARGET = pmdplay
all : $(TARGET)
$(TARGET) : $(OBJS)
$(LD) $(LFLAGS) -o $@ $(OBJS) $(SDL_LIBS)
fmgen/libfmgen.a:
cd fmgen ; make
pmdwin/libpmdwin.a:
cd pmdwin ; make
%.o : %.c
$(CC) -c $(CFLAGS) $(SDL_CFLAGS) -o $@ $<
clean :
rm -f $(TARGET) $(OBJS)
dist :
find . -name ".DS_Store" -exec rm -f {} \;
find $(FILES) $(SRCDIR) -exec $(TOUCH) {} \;
rm -f $(ZIPSRC)
zip -r $(ZIPSRC) $(SRCDIR) $(FILES) $(FILES_ORG)