clean up some makefile issues. (NicJA)
[AROS.git] / workbench / c / Shell / mmakefile.src
blobd919c16b19a5229284e22bcc54e4717549713f4a
1 #   $Id$
3 #   Makefile for the shell
5 include $(SRCDIR)/config/aros.cfg
7 FILES := \
8         Shell \
9         buffer \
10         cliEcho \
11         cliLen \
12         cliNan \
13         cliPrompt \
14         cliVarNum \
15         convertArg \
16         convertBackTicks \
17         convertLineDot \
18         convertRedir \
19         convertVar \
20         convertLine \
21         interpreter \
22         redirection \
23         readLine
25 USER_CPPFLAGS += -DADATE="\"$(shell date "+%d.%m.%Y")\"" \
26                -D__DOS_NOLIBBASE__
27 USER_LDFLAGS := -static
29 #MM- workbench-c : workbench-c-shell
31 #MM- workbench-c-quick : workbench-c-shell-quick
33 #MM  workbench-c-shell : includes linklibs workbench-libs-dos-catalogs
35 %build_prog mmake=workbench-c-shell     progname=UserShell-Seg \
36     files=$(FILES) targetdir=$(AROS_FS) \
37     usestartup="no"
39 USER_CPPFLAGS += -DUSE_EMBEDDED_COMMANDS
40 ifeq ($(AROS_TARGET_CPU),m68k)
41 # Make sure we optimize this code for size on m68k..
42 OPTIMIZATION_CFLAGS := -Os
43 USER_CPPFLAGS   += -D__DOS_NOLIBINLINE__ 
44 endif
45 OBJDIR := $(OBJDIR).kernel
47 %build_module mmake=kernel-shell \
48   modname=shell modtype=resource \
49   files="shell_init $(FILES)"
51 %common