-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmakefile.unx
112 lines (97 loc) · 2.11 KB
/
makefile.unx
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Generic Legacy Makefile for UNIX systems
# No support for the Husky build environment, no support for Fidoconfig
# Direct Termcap / ANSI terminal I/O (does not work on Solaris)
# install programs in:
#BINDIR=/usr/local/bin
BINDIR=~/bin
# where to put the recoding table
#READMAPS=/usr/local/share/msged/readmaps.dat
#WRITMAPS=/usr/local/share/msged/writmaps.dat
READMAPS=~/.msged.readmaps
WRITMAPS=~/.msged.writmaps
# where to find the configuration file
#DEFAULT_CONFIG_FILE=/usr/local/share/msged/msged.cfg
DEFAULT_CONFIG_FILE=~/.msged
INCDIR=..
# options for installing programs
IBOPT= -c
CC= cc
CFLAGS= -I$(INCDIR) -I$(INCDIR)/huskylib
CDEFS= -DUNIX -DUSE_MSGAPI -DUNAME=\"UNX\" -DREADMAPSDAT='"$(READMAPS)"' -DWRITMAPSDAT='"$(WRITMAPS)"' -DDEFAULT_CONFIG_FILE='"$(DEFAULT_CONFIG_FILE)"'
COPT= -O3
LFLAGS= -L../smapi -L../huskylib
TARGET= msged
MSGAPI=-lsmapiunix -lhuskylib
TERMCAP=-lcurses
#termcap
objs= addr.o \
ansi.o \
areas.o \
bmg.o \
charset.o \
config.o \
control.o \
curses.o \
date.o \
dialogs.o \
dirute.o \
dlgbox.o \
dlist.o \
echotoss.o \
environ.o \
fconf.o \
fecfg145.o \
fido.o \
filedlg.o \
flags.o \
freq.o \
gestr120.o \
getopts.o \
group.o \
help.o \
helpcmp.o \
helpinfo.o \
init.o \
keycode.o \
list.o \
maintmsg.o \
makemsgn.o \
memextra.o \
menu.o \
misc.o \
mnu.o \
msg.o \
msged.o \
mxbt.o \
normalc.o \
nshow.o \
quick.o \
quote.o \
readmail.o \
readtc.o \
screen.o \
strextra.o \
system.o \
template.o \
textfile.o \
timezone.o \
userlist.o \
vsev.o \
vsevops.o \
win.o \
wrap.o
all: $(TARGET) testcons
.c.o:
$(CC) $(COPT) $(CFLAGS) $(CDEFS) -c $<
$(TARGET): $(objs)
$(CC) $(COPT) $(LFLAGS) -o $(TARGET) $(objs) $(MSGAPI) $(TERMCAP)
testcons: testcons.o
$(CC) $(COPT) $(LFLAGS) -o testcons testcons.o $(TERMCAP)
clean:
-rm *.o *~
distclean: clean
-rm $(TARGET) testcons
install: $(TARGET)
install -c $(IBOPT) $(TARGET) $(BINDIR)
install -c bin/latin/readmaps.dat $(READMAPS)
install -c bin/latin/writmaps.dat $(WRITMAPS)