1#ident "@(#)shlshedit.mk 1.9 20/07/08 " 2########################################################################### 3SRCROOT= .. 4RULESDIR= RULES 5include $(SRCROOT)/$(RULESDIR)/rules.top 6########################################################################### 7 8SUBARCHDIR= /pic 9INSDIR= lib 10TARGETLIB= shedit 11 12CPPOPTS += -DBSH # Tell the code that we compile for bsh 13CPPOPTS += -DUSE_LARGEFILES # Allow Large Files (> 2 GB) 14CPPOPTS += -DINTERACTIVE # Include command line history editor 15CPPOPTS += -DDO_SUID # Include code for 'suid' builtin 16# ??? CPPOPTS += -DJOBCONTROL # Include Job Control management 17CPPOPTS += -DVFORK # Use vfork() if possible 18CPPOPTS += -DOLD_PWORD # Use old "word" tokenizer 19CPPOPTS += -DFAST_MALLOC # malloc() without freechecking 20 # and without bound checks 21#CPPOPTS += -DNO_USER_MALLOC # Do not use our own malloc() 22CPPOPTS += -DTESTMAIL # Do mail file checking 23 24CPPOPTS += -DBOURNE 25CPPOPTS += -DLIB_SHEDIT 26CPPOPTS += -DINCL_MYSTDIO 27CPPOPTS += -DNO_WEAK_SYMBOLS 28CPPOPTS += -DNO_GETLINE_COMPAT 29CPPOPTS += -I. 30#CPPOPTS += -DNO_LOCALE # Don't use setlocale() 31#CPPOPTS += -DNO_WCHAR # Don't use wide chars 32 33#COPTX += -g -xO0 34#LDOPTX += -g 35 36# 37# Additional defines: 38# 39# -DFAST_MALLOC a malloc() without freechecking and without a check 40# for overrun size bounds. 41# -DNO_USER_MALLOC Do not use our own (user defined) malloc() 42 43include Targets 44 45LIBS= -lxtermcap -lschily -lc 46#XMK_FILE= Makefile.man 47XMK_FILE= 48 49inputc.c map.c bsh.h comerr.c: 50 @echo " ==> MAKING SYMLINKS in ."; sh ./MKLINKS 51$(ALLTARGETS): inputc.c map.c 52$(SRCROOT)/$(RULESDIR)/rules.shl: bsh.h 53 54########################################################################### 55include $(SRCROOT)/$(RULESDIR)/rules.shl 56########################################################################### 57count: $(HFILES) $(CFILES) 58 count $r1 59 60########################################################################### 61include $(SRCROOT)/$(RULESDIR)/rules.rel 62########################################################################### 63