reenabled swaptest. quake should now load data and start on big endian architectures...
[AROS-Contrib.git] / gnu / abc-shell / Makefile.AROS
blob25922708e2c8da883997c831338143ee1366d5c2
2 # Makefile for Amiga Bourne Compatible Shell.
5 .PHONY: all clean debug
7 DEBUG = -DNDEBUG
9 TARGET := i386-pc
10 CC = $(TARGET)-aros-gcc
11 STRIP = $(TARGET)-aros-strip -R.comment $@
13 CFLAGS = -Wall -Wwrite-strings -g #-O2 $(DEBUG)
14 LDFLAGS = -nix
15 CPPFLAGS = -DAMIGA -DPOSIXLY_CORRECT -DHISTORY -DAUTOINIT -D__STDC_VERSION__=199901L
17 LIBS = -lm
19 SRCS = amigaos.c alloc.c c_ksh.c c_sh.c c_test.c environ.c eval.c exec.c \
20         expr.c history.c io.c jobs.c lex.c main.c misc.c missing.c path.c \
21         shf.c sigact.c syn.c table.c trap.c tree.c tty.c var.c version.c
22 OBJS = $(SRCS:.c=.o)
23 DEPS = $(OBJS:.o=.d)
25 all: sh
26         @echo done.
28 debug: DEBUG = -ggdb
29 debug: STRIP = 
30 debug: all
32 sh: $(OBJS)
33         $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
34 #       $(STRIP)
36 %.o : %.c
37         $(CC) -MM -MP $(INCDIRS) $< >$*.d
38         $(CC) -c $(CPPFLAGS) -I. $(CFLAGS) $<
40 clean:
41         rm -f sh $(OBJS) $(DEPS) *~
43 -include $(SRCS:.c=.d)