1 #ident @(#)Makefile 1.28 21/08/20 2 ########################################################################### 3 SRCROOT= .. 4 RULESDIR= RULES 5 include $(SRCROOT)/$(RULESDIR)/rules.top 6 ########################################################################### 7 8 INSDIR= bin 9 TARGET= bsh 10 SYMLINKS= pfbsh 11 CPPOPTS += -DBSH # Tell the code that we compile for bsh 12 CPPOPTS += -DUSE_LARGEFILES # Allow Large Files (> 2 GB) 13 CPPOPTS += -DINTERACTIVE # Include command line history editor 14 CPPOPTS += -DDO_SUID # Include code for 'suid' builtin 15 CPPOPTS += -DDO_PFEXEC # Include code for "pfbsh" (pfexec) 16 CPPOPTS += -DJOBCONTROL # Include Job Control management 17 CPPOPTS += -DVFORK # Use vfork() if possible 18 CPPOPTS += -DOLD_PWORD # Use old "word" tokenizer 19 CPPOPTS += -DFAST_MALLOC # malloc() without freechecking 20 # and without bound checks 21 #CPPOPTS += -DD_MALLOC # add support for dbg_malloc() 22 #CPPOPTS += -DNO_USER_MALLOC # Do not use our own malloc() 23 CPPOPTS += -DTESTMAIL # Do mail file checking 24 CPPOPTS += -DSCHILY_PRINT # Use js_*() versions of *print*() funcs 25 CPPOPTS += -DDO_FIND # Include find(1) builtin 26 #CPPOPTS += -DNO_LOCALE # Don't use setlocale() 27 #CPPOPTS += -DNO_WCHAR # Don't use wide chars 28 29 CPPOPTS += -DUSE_NLS # Include locale support 30 CPPOPTS += -DINS_BASE=\"${INS_BASE}\" 31 CPPOPTS += -DINS_RBASE=\"${INS_RBASE}\" 32 CPPOPTS += -DTEXT_DOMAIN=\"SCHILY_utils\" 33 34 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 43 CFILES= bsh.c node.c parse.c hashcmd.c alias.c abbtab.c \ 44 exec.c sys.c proc.c \ 45 builtin.c btab.c ctype.c signames.c \ 46 call.c cond.c dirs.c test.c idops.c input.c limit.c \ 47 getrusage.c \ 48 abbrev.c expand.c strsubs.c inputc.c ttymodes.c map.c \ 49 testmail.c oldhistory.c evops.c str.c version.c \ 50 alloc.c wait3.c pfexec.c 51 # 52 # match.c nur wenn evt. a='test'cc"bbb" implementiert wird 53 # alloc.c match.c wait3.c 54 55 HFILES= abbrev.h bsh.h map.h node.h abbtab.h btab.h limit.h \ 56 str.h \ 57 strsubs.h ctype.h bshconf.h 58 #LIBS= -lunos 59 # 60 # $(LIB_ACL_TEST) $(LIB_INTL) are needed for libfind 61 # 62 LIBS= -lxtermcap -lfind -lschily $(LIB_SECDB) $(LIB_CRYPT) $(LIB_ACL_TEST) $(LIB_INTL) 63 XMK_FILE= Makefile.man pfbsh.mk1 Makefile.dot 64 65 ########################################################################### 66 include $(SRCROOT)/$(RULESDIR)/rules.cmd 67 ########################################################################### 68 count: $(HFILES) $(CFILES) 69 count $r1 70 71