1# Legacy Makefile for DOS / DJGPP
2# No support for the Husky build environment.
3
4include ../huskybse/huskymak.cfg.djg
5
6CC=	$(CROSSPREFIX)gcc
7CFLAGS= -Wall -I../smapi -I.. -I../huskylib -I../fidoconf
8CDEFS=	-D__FLAT__ -DUSE_MSGAPI -DNOSEMAPHORES
9COPT=	-O3 -fomit-frame-pointer -fstrength-reduce
10LFLAGS= -L../smapi -L../huskylib -L../fidoconf -s
11
12TARGET=	msged32.exe
13MSGAPI	= ../areafix/make/$(LIBPREFIX)areafix$(LIBSUFFIX)$(_LIB) \
14	  ../fidoconf/make/$(LIBPREFIX)fconf$(LIBSUFFIX)$(_LIB) \
15	  ../smapi/make/$(LIBPREFIX)smapi$(LIBSUFFIX)$(_LIB) \
16	  ../huskylib/make/$(LIBPREFIX)husky$(LIBSUFFIX)$(_LIB)
17
18
19#If you don't have ncurses, try this, but be aware that the Linux termcap
20#database has many bugs. For example, you will lose pseudographics in the
21#xterm this way.
22#TERMCAP=-ltermcap
23
24objs=   addr.o     \
25	areas.o    \
26	bmg.o      \
27	charset.o  \
28	config.o   \
29	control.o  \
30	curses.o   \
31	date.o     \
32	dialogs.o  \
33	dirute.o   \
34	dlgbox.o   \
35	dlist.o    \
36	dosasm.o   \
37	echotoss.o \
38	environ.o  \
39	fconf.o    \
40	fecfg145.o \
41	fido.o     \
42	filedlg.o  \
43	flags.o    \
44	freq.o     \
45	gestr120.o \
46	getopts.o  \
47	group.o    \
48	help.o     \
49	helpcmp.o  \
50	helpinfo.o \
51	ibmscrn.o  \
52	init.o     \
53	keycode.o  \
54	list.o     \
55	maintmsg.o \
56	makemsgn.o \
57	memextra.o \
58	menu.o     \
59	misc.o     \
60	mnu.o      \
61	mouse4.o   \
62	msg.o      \
63	msged.o    \
64	mxbt.o     \
65	normalc.o  \
66	nshow.o    \
67	quick.o    \
68	quote.o    \
69	readmail.o \
70	screen.o   \
71	strextra.o \
72	system.o   \
73	template.o \
74	textfile.o \
75	timezone.o \
76	userlist.o \
77	vio.o      \
78	vsev.o     \
79	vsevops.o  \
80	win.o      \
81	wrap.o
82
83all: $(TARGET)
84
85.c.o:
86	@echo Compiling $<
87	@$(CC) $(COPT) $(CFLAGS) $(CDEFS) -c $<
88
89$(TARGET): $(objs)
90	@echo Create $(TARGET)
91	@$(CC) $(COPT) $(LFLAGS) -o $(TARGET) $(objs) $(MSGAPI)
92
93clean:
94	-del *.o
95	-del *~
96
97distclean: clean
98	-del $(TARGET)
99
100