2 # Makefile for zunemaster.library
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
31 CFLAGS = -D__AMIGAOS4__ -D__USE_OLD_TIMEVAL__ -DNDEBUG -D__USE_INLINE__ -Wall -fno-strict-aliasing -mcrt=clib2 -c $(OPTIMIZE) $(DEBUG) $(INC)
33 # Flags passed to gcc during linking
34 LINK = -nostartfiles -mcrt=clib2
36 # Name of the "thing" to build
37 TARGET = zunemaster.library
39 # Additional linker libraries
42 # Version of the binary to build
45 # Source code files used in this project
47 ASRCS= #amiga-mui/hookentry.S amiga-mui/muidispatcherentry.S
123 mui_addclipregion.c \
124 mui_allocaslrequest.c \
127 mui_createcustomclass.c \
128 mui_deletecustomclass.c \
129 mui_disposeobject.c \
132 mui_freeaslrequest.c \
142 mui_removeclipping.c \
143 mui_removeclipregion.c \
153 zunemaster_init-aos4.c
155 SRCS = $(BASEARCHSRCS) $(addprefix classes/,$(CLASSSRCS))
157 # -------------------------------------------------------------
159 OBJS = $(SRCS:%.c=ppc-amigaos-objs/%.o)
160 AOBJS = $(ASRCS:%.S=ppc-amigaos-objs/%.o)
162 all: envs dirs $(TARGET)
169 -$(MKDIR) ppc-amigaos-objs ppc-amigaos-objs/classes
171 buildincludes: buildincludes.c
175 includes: dirs buildincludes
176 -$(RM) include-generated
177 -$(MKDIR) include-generated include-generated/libraries include-generated/proto include-generated/inline4 include-generated/interfaces
178 ./buildincludes >include-generated/libraries/mui.h
179 cp include/proto/zunemaster.h include-generated/proto
180 cp include/proto/muimaster.h include-generated/proto
181 cp include/inline4/zunemaster.h include-generated/inline4
182 cp include/interfaces/zunemaster.h include-generated/interfaces
185 $(TARGET): $(OBJS) $(AOBJS)
186 $(CC) $(LINK) -o $@.debug $(OBJS) $(AOBJS) $(LIBS) -Wl,--cref,-M,-Map=$@.map
187 $(STRIP) --strip-all -o $@ $@.debug
188 cp zunemaster.library.debug "/cygdrive/c/Dokumente und Einstellungen/sba/Eigene Dateien/AmigaOne/zunemaster.library"
190 ppc-amigaos-objs/%.o: %.c
191 $(CC) $(CFLAGS) -c $< -o $@
195 $(RM) $(TARGET) $(OBJS) ppc-amigaos-objs
199 bumprev $(VERSION) $(TARGET)