3 # Makefile for shell commands
5 include $(SRCDIR)/config/aros.cfg
45 USER_INCLUDES := -I$(GENDIR)/workbench/c/shellcommands/shellsegs.h
46 USER_CPPFLAGS := -DADATE="\"$(shell date "+%d.%m.%Y")\""
47 USER_LDFLAGS := -static
49 #MM- workbench-c : workbench-c-shellcommands
50 #MM- workbench-c-quick : workbench-c-shellcommands-quick
51 #MM- workbench-c-shellcommands : includes linklibs workbench-libs-dos-catalogs
53 %build_progs mmake=workbench-c-shellcommands \
54 files=$(FILES) targetdir=$(AROS_C) \
58 # Embedded side of the world
61 USER_CPPFLAGS := -D__NOLIBBASE__ \
62 -DADATE="\"$(shell date "+%d.%m.%Y")\""
63 USER_CPPFLAGS += -DUSE_EMBEDDED_COMMANDS
64 ifeq ($(AROS_TARGET_CPU),m68k)
65 # Make sure we optimize this code for size on m68k..
66 OPTIMIZATION_CFLAGS := -Os
67 USER_CPPFLAGS += -D__DOS_NOLIBINLINE__
70 OBJDIR := $(OBJDIR).kernel
72 # These are the built-ins for AmigaOS 3.x and above
103 %build_module mmake=kernel-shellcommands \
104 modname=shellcommands modtype=resource \
105 files="shellcommands_init $(FILES)"