2 # Makefile for Amiga Bourne Compatible Shell.
5 .PHONY
: all clean debug
14 STRIP
= ppc-amigaos-strip
-R.comment
$@
16 CFLAGS
= -mcrt
=$(CRT
) -Wall
-Wwrite-strings
-O2
$(DEBUG
)
17 LDFLAGS
= -mcrt
=$(CRT
)
18 CPPFLAGS
= -mcrt
=$(CRT
) -DAMIGA
-DPOSIXLY_CORRECT
-DHISTORY
-DAUTOINIT
-D__STDC_VERSION__
=199901L
23 LIBS
= -lnet
-lm
-lunix
26 SRCS
= amigaos.c alloc.c c_ksh.c c_sh.c c_test.c environ.c eval.c exec.c \
27 expr.c history.c io.c jobs.c
lex.c main.c misc.c missing.c path.c \
28 shf.c sigact.c syn.c table.c trap.c tree.c tty.c var.c version.c
40 $(CC
) $(LDFLAGS
) -o
$@
$(OBJS
) $(LIBS
)
44 $(CC
) -MM
-MP
$(INCDIRS
) $< >$*.d
45 $(CC
) -c
$(CPPFLAGS
) -I.
$(CFLAGS
) $<
48 rm -f sh
$(OBJS
) $(DEPS
) *~
50 -include $(SRCS
:.c
=.d
)