home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-11-27 | 1.2 KB | 56 lines |
- #
- # environment set up for use with gcc-2.95.2 as distributed by www.palm.com
- #
-
- CC = m68k-palmos-gcc
-
- # define OLDGCC if you are using gcc-2.7.x; check mine.c for a comment on this
- # CFLAGS = -O2 -fomit-frame-pointer -Wall -D$(LANGUAGE) -DOLDGCC
- CFLAGS = -Os -fomit-frame-pointer -Wall -D$(LANGUAGE)
- # CFLAGS = -g -Wall -D$(LANGUAGE)
-
- PILRC = pilrc
- PRCFLAGS = -q -L $(LANGUAGE)
- OBJRES = m68k-palmos-obj-res
- BUILDPRC = build-prc
- LANGUAGE ?= DEUTSCH
- # LANGUAGE = ENGLISH
-
- OBJS = mine.o hscore.o
-
- ICONTEXT = 'PilotMines'
- APPID = tpPM
-
- all: mine.prc
-
- all-lang:
- make clean all LANGUAGE=DEUTSCH
- mv mine.prc mine-de.prc
- make clean all LANGUAGE=ENGLISH
- mv mine.prc mine-en.prc
-
- mine.prc: code0000.mine.bin code0001.mine.bin data0000.mine.bin bin.res
- $(BUILDPRC) mine.prc $(ICONTEXT) $(APPID) code0001.mine.grc \
- code0000.mine.grc data0000.mine.grc *.bin pref0000.mine.grc
- ls -l mine.prc
-
- code0000.mine.bin: mine
- $(OBJRES) $<
-
- code0001.mine.bin: code0000.mine.bin
-
- data0000.mine.bin: code0000.mine.bin
-
- bin.res: mine.rcp
- $(PILRC) $(PRCFLAGS) mine.rcp .
- touch bin.res
-
- mine: $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) -o $@
-
- clean:
- rm -f $(OBJS) mine *.bin bin.res *~ *.grc *.BAK *.bak *.log
-
- realclean: clean
- rm -f *.prc *.pdb
-