home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-06-03 | 878 b | 42 lines |
- #
- # makefile to build TolleUhr and tolleuhr.library
- #
-
- # compiler driver (override for flavours!)
- #
- CC = gcc
-
- # default compiler flags
- #
- CFLAGS = -O2 -fomit-frame-pointer -fno-function-cse -msmall-code -mregparm=3 -c
-
- # useful for development (faster compiling since no optimizations)
- #
- #CFLAGS = -Dextern=static -D__OPTIMIZE__ -w -msmall-code
-
- # linker options (no debug info,no startup, no libraries)
- #
- LDFLAGS = -s -nostdlib
-
- # which libraries
- #
- LDLIBS = -lamiga
-
- # default targets
- #
- all: TolleUhr tolleuhr.library
-
- # plain version (libmath.a -> mul32/div[u]32/mod[u]32 for 68000)
- #
- TolleUhr: tolleuhr.o
- $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS) lib/libmath.a
-
- tolleuhr.library: libinit.o tolleuhr.o
- $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS) lib/libmath.a
-
- tolleuhr.o: tolleuhr.c tolleuhr_locale.h
- $(CC) $(CFLAGS) $<
-
- libinit.o: libinit.c
- $(CC) $(CFLAGS) $< -fno-force-mem
-