2014-11-02 03:59:10 +00:00
|
|
|
SRCS = \
|
|
|
|
shell/hush.c \
|
|
|
|
shell/match.c \
|
|
|
|
shell/math.c \
|
|
|
|
shell/random.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
shell/shell.common.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
shell/glob.c \
|
|
|
|
coreutils/echo.c \
|
|
|
|
coreutils/test.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
coreutils/test.ptr.hack.c \
|
|
|
|
libbb/xfuncs.printf.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/xfuncs.c \
|
|
|
|
libbb/xgetcwd.c \
|
|
|
|
libbb/getopt32.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/perror.msg.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/xatonum.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/signal.names.c \
|
|
|
|
libbb/ptrtoglobals.c \
|
|
|
|
libbb/error.retval.c \
|
|
|
|
libbb/xfunc.die.c \
|
|
|
|
libbb/safe.strncpy.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/lineedit.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/lineedptrhack.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/platform.c \
|
|
|
|
libbb/endofname.c \
|
|
|
|
libbb/signals.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/skip.whitespc.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/wfopen.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/verror.msg.c \
|
|
|
|
libbb/bb.strtonum.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/time.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/printable.str.c \
|
|
|
|
libbb/full.write.c \
|
|
|
|
libbb/bb.qsort.c \
|
|
|
|
libbb/xrealloc.vec.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/copyfd.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/read.key.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/unicode.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/safe.write.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/read.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/s.gethostname.c \
|
|
|
|
libbb/get.line.c \
|
|
|
|
libbb/conc.pathfile.c \
|
|
|
|
libbb/last.char.is.c \
|
|
|
|
libbb/safe.poll.c \
|
|
|
|
libbb/escape.seq.c \
|
|
|
|
libbb/cmp.str.array.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/llist.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/parse.mode.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/messages.c \
|
|
|
|
libbb/appletlib.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/bb.basename.c \
|
2014-11-02 03:59:10 +00:00
|
|
|
libbb/mempcpy.c \
|
2014-11-03 04:11:07 +00:00
|
|
|
libbb/vfork.and.run.c
|
2014-11-02 03:59:10 +00:00
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
ROOTS = $(SRCS:.c=.root)
|
|
|
|
|
|
|
|
INCLUDES = -I include -I shell -I libbb
|
|
|
|
DEFINES = -Dhush_main=main -DNDEBUG
|
|
|
|
|
|
|
|
OCC_FLAGS = -i -w -a0
|
|
|
|
# Add $(OCC_FLAGS) to CFLAGS on dmake
|
|
|
|
CFLAGS = $(null, $(OCC_FLAGS))
|
|
|
|
|
|
|
|
PROG = hush
|
|
|
|
|
|
|
|
$(PROG): $(OBJS)
|
|
|
|
$(CC) $(OBJS) -o $@
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(INCLUDES) $(DEFINES) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(RM) $(OBJS) $(ROOTS) $(PROG)
|