2 # Makefile for the Zune prefs application
5 # If Kickstart isn't defined, we don't run on AmigaOS
8 CROSS_COMPILE = ppc-amigaos-
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
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
36 # Name of the "thing" to build
39 # Additional linker libraries
40 LIBS = -lauto #-ldebug -lauto
42 # Version of the binary to build
45 # Source code files used in this project
65 # -------------------------------------------------------------
67 OBJS = $(SRCS:%.c=ppc-amigaos-objs/%.o)
68 AOBJS = $(ASRCS:%.S=ppc-amigaos-objs/%.o)
70 all: envs dirs $(TARGET)
77 -$(MKDIR) ppc-amigaos-objs
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 $@
90 $(RM) $(TARGET) $(OBJS) ppc-amigaos-objs
94 bumprev $(VERSION) $(TARGET)