forked from MagerValp/CGTerm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.win
78 lines (63 loc) · 1.3 KB
/
makefile.win
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# for windows:
PREFIX=.
SOCKETLIBS=-lwsock32
EXESUFFIX=.exe
CC=gcc
CFLAGS=-O3 -Wall `sdl-config --cflags` -DWINDOWS
LDFLAGS=`sdl-config --libs` $(SOCKETLIBS)
OBJS= \
kernal.o \
gfx.o \
net.o \
config.o \
keyboard.o \
menu.o \
font.o \
timer.o \
crc.o \
sound.o \
macro.o \
ui.o
TERMOBJS= \
xfer.o \
xmodem.o \
punter.o \
diskimage.o \
dir.o \
fileselector.o \
ui_term.o
CHATOBJS= \
chat.o \
status.o \
ui_chat.o
EDITOBJS= \
ui_edit.o \
fileselector.o \
dir.o \
diskimage.o
%.o: %c
$(CC) $(CFLAGS) -c $<
all: cgterm cgchat cgedit
cgterm: cgterm.o $(OBJS) $(TERMOBJS)
$(CC) -o cgterm $^ $(LDFLAGS)
cgchat: cgchat.o $(OBJS) $(CHATOBJS)
$(CC) -o cgchat $^ $(LDFLAGS)
cgedit: cgedit.o $(OBJS) $(EDITOBJS)
$(CC) -o cgedit $^ $(LDFLAGS)
install: all
strip cgterm$(EXESUFFIX)
strip cgchat$(EXESUFFIX)
strip cgedit$(EXESUFFIX)
-mkdir cgterm-win32 > /dev/null 2>&1
cp cgterm$(EXESUFFIX) cgterm-win32/
cp cgchat$(EXESUFFIX) cgterm-win32/
cp cgedit$(EXESUFFIX) cgterm-win32/
cp *.bmp *.wav cgterm-win32/
cp cgterm.txt cgchat.txt history.txt cgterm-win32/
cp SDL.dll cgterm-win32/
cp windows.kbd cgterm-win32/windows.kbd
# cp config.win cgterm-win32/cgterm.cfg
clean:
rm -f cgterm$(EXESUFFIX) cgchat$(EXESUFFIX) cgedit$(EXESUFFIX)
rm -f cgchat.cfg cgterm.cfg cgedit.cfg
rm -f *.o *~