ports

morpheus ports
git clone git://git.2f30.org/ports.git
Log | Files | Refs | LICENSE

mksh.mk (2780B)


      1 <../v.mk
      2 
      3 BIN = mksh
      4 OBJ = \
      5 	edit.o \
      6 	eval.o \
      7 	exec.o \
      8 	expr.o \
      9 	funcs.o \
     10 	histrap.o \
     11 	jobs.o \
     12 	lalloc.o \
     13 	lex.o \
     14 	main.o \
     15 	misc.o \
     16 	shf.o \
     17 	strlcpy.o \
     18 	syn.o \
     19 	tree.o \
     20 	var.o
     21 
     22 <$mkbuild/mk.default
     23 
     24 INSTALL_BIN = mksh
     25 INSTALL_MAN1 = mksh.1
     26 INSTALL_SYMLINK = \
     27 	mksh $BINDIR/sh \
     28 	mksh.1 $MANDIR/man1/sh.1 \
     29 	mksh $BINDIR/ksh \
     30 	mksh.1 $MANDIR/man1/ksh.1
     31 LOCAL_CFLAGS = \
     32 	-I.  -DMKSH_BUILDSH -D_GNU_SOURCE -DSETUID_CAN_FAIL_WITH_EAGAIN \
     33 	-DHAVE_ATTRIBUTE_BOUNDED=0 -DHAVE_ATTRIBUTE_FORMAT=1 \
     34 	-DHAVE_ATTRIBUTE_NORETURN=1 -DHAVE_ATTRIBUTE_UNUSED=1 \
     35 	-DHAVE_ATTRIBUTE_USED=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TIME_H=1 \
     36 	-DHAVE_BOTH_TIME_H=1 -DHAVE_SYS_BSDTYPES_H=0 -DHAVE_SYS_FILE_H=1 \
     37 	-DHAVE_SYS_MKDEV_H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_PARAM_H=1 \
     38 	-DHAVE_SYS_RESOURCE_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_SYSMACROS_H=1 \
     39 	-DHAVE_BSTRING_H=0 -DHAVE_GRP_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIBUTIL_H=0 \
     40 	-DHAVE_PATHS_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_TERMIOS_H=1 \
     41 	-DHAVE_ULIMIT_H=1 -DHAVE_VALUES_H=1 -DHAVE_CAN_INTTYPES=1 \
     42 	-DHAVE_CAN_UCBINTS=1 -DHAVE_CAN_INT8TYPE=1 -DHAVE_CAN_UCBINT8=1 \
     43 	-DHAVE_RLIM_T=1 -DHAVE_SIG_T=1 -DHAVE_SYS_ERRLIST=0 -DHAVE_SYS_SIGNAME=0 \
     44 	-DHAVE_SYS_SIGLIST=0 -DHAVE_FLOCK=1 -DHAVE_LOCK_FCNTL=1 -DHAVE_GETRUSAGE=1 \
     45 	-DHAVE_GETTIMEOFDAY=1 -DHAVE_KILLPG=1 -DHAVE_MEMMOVE=1 -DHAVE_MKNOD=0 \
     46 	-DHAVE_MMAP=1 -DHAVE_NICE=1 -DHAVE_REVOKE=0 -DHAVE_SETLOCALE_CTYPE=1 \
     47 	-DHAVE_LANGINFO_CODESET=1 -DHAVE_SELECT=1 -DHAVE_SETRESUGID=1 \
     48 	-DHAVE_SETGROUPS=1 -DHAVE_STRERROR=1 -DHAVE_STRSIGNAL=1 -DHAVE_STRLCPY=1 \
     49 	-DHAVE_FLOCK_DECL=1 -DHAVE_REVOKE_DECL=1 -DHAVE_SYS_ERRLIST_DECL=0 \
     50 	-DHAVE_SYS_SIGLIST_DECL=0 -DHAVE_PERSISTENT_HISTORY=1 -DMKSH_BUILD_R=$BUILD
     51 
     52 CLEAN_FILES = signames.inc
     53 
     54 histrap.o: signames.inc
     55 
     56 signames.inc:
     57 	cat > signames.inc << EOF
     58                 { "INT", 2 },
     59                 { "SEGV", 11 },
     60                 { "ABRT", 6 },
     61                 { "KILL", 9 },
     62                 { "ALRM", 14 },
     63                 { "BUS", 7 },
     64                 { "CHLD", 17 },
     65                 { "CONT", 18 },
     66                 { "FPE", 8 },
     67                 { "HUP", 1 },
     68                 { "ILL", 4 },
     69                 { "IO", 29 },
     70                 { "PIPE", 13 },
     71                 { "PROF", 27 },
     72                 { "PWR", 30 },
     73                 { "QUIT", 3 },
     74                 { "STOP", 19 },
     75                 { "SYS", 31 },
     76                 { "TERM", 15 },
     77                 { "TRAP", 5 },
     78                 { "TSTP", 20 },
     79                 { "TTIN", 21 },
     80                 { "TTOU", 22 },
     81                 { "URG", 23 },
     82                 { "USR1", 10 },
     83                 { "USR2", 12 },
     84                 { "VTALRM", 26 },
     85                 { "WINCH", 28 },
     86                 { "XCPU", 24 },
     87                 { "XFSZ", 25 },
     88                 { "STKFLT", 16 },
     89 	EOF