use new platform macros to access scheduling/per-cpu flags. fix execsmp wait()
[AROS.git] / workbench / tools / HDToolBox / Makefile.gcc
blobec0b9129aed3baec2c8fba46dbb41030595c8725
1 ##  Copyright © 1995-2002, The AROS Development Team. All rights reserved.
2 ##  $Id$
4 CC      := gcc
5 LD      := gcc
6 RM      := rm
7 CFLAGS  := -Wall -DNO_INLINE_STDARG -D__AMIGAOS__ -O2 -m68020
8 LDFLAGS := -noixemul -s
9 EXE := /ram/HDToolBox
10 FILES   := \
11         main \
12         debug \
13         devices \
14         gui \
15         harddisks \
16         hdtoolbox_support \
17         locale \
18         partitions \
19         partitiontables \
20         ptclass \
21         prefs
23 CFILES := $(FILES)
25 COBJS   := $(foreach f, $(CFILES), $(f).o)
26 DEPS    := $(foreach f, $(CFILES), $(f).d)
27 #EXTRALIB:= $(shell $(CC) --print-libgcc-file)
29 .PHONY : all depend clean library
30            
31 all : $(EXE)
33 depend  : $(DEPS)
35 clean   :
36         rm -f *.o *.d $(EXE)
37         
38 $(EXE) : $(COBJS)
39         $(LD) $(LDFLAGS) $^ $(EXTRALIB) -o $@
41 %.o : %.c
42         $(CC) $(CFLAGS) -c $< -o $@
44 %.d : %.c
45         $(CC) $(CFLAGS) -M $< -o $@
47 ifeq (,$(filter clean depend,$(TARGET)))
48 -include $(DEPS)
49 endif