disable float support on m68k to prevent unwanted symbols being used in rom code...
[AROS.git] / workbench / prefs / Zune / makefile.aos4
blob40c0ce3b0370241905bffe183b229f58fba0dbb5
2 # Makefile for the Zune prefs application
5 # If Kickstart isn't defined, we don't run on AmigaOS
6 ifndef Kickstart
8 CROSS_COMPILE = ppc-amigaos-
9 RM     = rm -R
10 MKDIR  = mkdir -p
12 else
14 RM = delete all
15 MKDIR = makedir
16 endif
18 # Uncomment the next line if you are cross compiling
20 CC     = $(CROSS_COMPILE)gcc
21 CXX    = $(CROSS_COMPILE)c++
22 AS     = $(CROSS_COMPILE)as
23 LD     = $(CROSS_COMPILE)ld
24 RANLIB = $(CROSS_COMPILE)ranlib
25 STRIP  = $(CROSS_COMPILE)strip
27 # Change these as required
28 OPTIMIZE = #-O3
29 DEBUG = -g #-DMYDEBUG #-ggdb # -g -DDEBUG
30 INC = -I include -I . -I $(ZUNE_INC)
31 CFLAGS = -D__AMIGAOS4__ -DNDEBUG -D__USE_INLINE__ -Wall -fno-strict-aliasing -c $(OPTIMIZE) $(DEBUG) $(INC)
33 # Flags passed to gcc during linking
34 LINK = 
36 # Name of the "thing" to build
37 TARGET = Zune
39 # Additional linker libraries
40 LIBS = -lauto #-ldebug -lauto
42 # Version of the binary to build
43 VERSION = 0
45 # Source code files used in this project
48 SRCS=\
49         buttonsp.c \
50         cyclesp.c \
51         framesp.c \
52         groupsp.c \
53         listviewsp.c \
54         locale.c \
55         navigationp.c \
56         prefsio.c \
57         scrollbarsp.c \
58         slidersp.c \
59         specialp.c \
60         stringsp.c \
61         windowp.c \
62         zune.c \
63         zunestuff.c
65 # -------------------------------------------------------------
67 OBJS = $(SRCS:%.c=ppc-amigaos-objs/%.o)
68 AOBJS = $(ASRCS:%.S=ppc-amigaos-objs/%.o)
70 all: envs dirs $(TARGET)
72 .PHONY: envs
73 envs:
75 .PHONY: dirs
76 dirs:
77         -$(MKDIR) ppc-amigaos-objs
79 # Rules for building
80 $(TARGET): $(OBJS) $(AOBJS)
81         $(CC) $(LINK) -o $@.debug $(OBJS) $(AOBJS) $(LIBS) -Wl,--cref,-M,-Map=$@.map
82         $(STRIP) --strip-all -o $@ $@.debug
83         cp $@.debug "/cygdrive/c/Dokumente und Einstellungen/sba/Eigene Dateien/AmigaOne/$@"
85 ppc-amigaos-objs/%.o: %.c
86         $(CC) $(CFLAGS) -c $< -o $@
88 .PHONY: clean
89 clean:
90         $(RM) $(TARGET) $(OBJS) ppc-amigaos-objs
92 .PHONY: revision
93 revision:
94         bumprev $(VERSION) $(TARGET)