1# Generic Legacy Makefile for UNIX systems 2# No support for the Husky build environment, no support for Fidoconfig 3# Direct Termcap / ANSI terminal I/O (does not work on Solaris) 4 5# install programs in: 6#BINDIR=/usr/local/bin 7BINDIR=~/bin 8 9# where to put the recoding table 10#READMAPS=/usr/local/share/msged/readmaps.dat 11#WRITMAPS=/usr/local/share/msged/writmaps.dat 12READMAPS=~/.msged.readmaps 13WRITMAPS=~/.msged.writmaps 14 15# where to find the configuration file 16#DEFAULT_CONFIG_FILE=/usr/local/share/msged/msged.cfg 17DEFAULT_CONFIG_FILE=~/.msged 18 19INCDIR=.. 20 21# options for installing programs 22IBOPT=-s -c 23 24CC= cc 25CFLAGS= -I$(INCDIR) 26CDEFS= -DUNIX -DUSE_MSGAPI -DUNAME=\"BSD\" -DREADMAPSDAT='"$(READMAPS)"' -DWRITMAPSDAT='"$(WRITMAPS)"' -DDEFAULT_CONFIG_FILE='"$(DEFAULT_CONFIG_FILE)"' 27COPT= -O3 28LFLAGS= -L../smapi -L../fidoconfig -s 29 30TARGET= msged 31MSGAPI=-lsmapiunix 32TERMCAP=-ltermcap 33 34objs= addr.o \ 35 ansi.o \ 36 areas.o \ 37 bmg.o \ 38 charset.o \ 39 config.o \ 40 control.o \ 41 curses.o \ 42 date.o \ 43 dialogs.o \ 44 dirute.o \ 45 dlgbox.o \ 46 dlist.o \ 47 echotoss.o \ 48 environ.o \ 49 fconf.o \ 50 fecfg145.o \ 51 fido.o \ 52 filedlg.o \ 53 flags.o \ 54 freq.o \ 55 gestr120.o \ 56 getopts.o \ 57 group.o \ 58 help.o \ 59 helpcmp.o \ 60 helpinfo.o \ 61 init.o \ 62 keycode.o \ 63 list.o \ 64 maintmsg.o \ 65 makemsgn.o \ 66 memextra.o \ 67 menu.o \ 68 misc.o \ 69 mnu.o \ 70 msg.o \ 71 msged.o \ 72 mxbt.o \ 73 normalc.o \ 74 nshow.o \ 75 quick.o \ 76 quote.o \ 77 readmail.o \ 78 readtc.o \ 79 screen.o \ 80 strextra.o \ 81 system.o \ 82 template.o \ 83 textfile.o \ 84 timezone.o \ 85 userlist.o \ 86 vsev.o \ 87 vsevops.o \ 88 win.o \ 89 wrap.o 90 91all: $(TARGET) testcons 92 93.c.o: 94 $(CC) $(COPT) $(CFLAGS) $(CDEFS) -c $< 95 96$(TARGET): $(objs) 97 $(CC) $(COPT) $(LFLAGS) -o $(TARGET) $(objs) $(MSGAPI) $(TERMCAP) 98 99testcons: testcons.o 100 $(CC) $(COPT) $(LFLAGS) -o testcons testcons.o $(TERMCAP) 101 102clean: 103 -rm *.o *~ 104 105distclean: clean 106 -rm $(TARGET) testcons 107 108install: $(TARGET) 109 install -c $(IBOPT) $(TARGET) $(BINDIR) 110 install -c bin/latin/readmaps.dat $(READMAPS) 111 install -c bin/latin/writmaps.dat $(WRITMAPS) 112