home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
pub
/
palmos
/
timber-0.0beta.tar.gz
/
timber-0.0beta.tar
/
Timber
/
Makefile
< prev
next >
Wrap
Makefile
|
2000-01-14
|
2KB
|
59 lines
#Makefile for gcc PalmPilot crosscompiler m68k-palmos-coff-gcc package.
# Change the strings from APP to BUILDPRC to match your own
# system configuration.
# Place the file into the developping directory.
# "make clean" removes all generated files, but not the ".prc".
APP =Timber
ICONTEXT ="Timber"
APPID =Tmbr
RCP =$(APP).rcp
PRC =$(APP).prc
SRC =$(APP).c
GRC =$(APP).grc
BIN =$(APP).bin
CC =m68k-palmos-coff-gcc
PILRC =pilrc
TXT2BITM =txt2bitm
OBJRES =m68k-palmos-coff-obj-res
BUILDPRC =build-prc
LDFLAGS =-lmf
# uncomment this if you want to build a gdb debuggable version
# -On: n=Optimization-level (0=none), -g: needed for debugging
CFLAGS =-O0 -g $(DEFINES) $(INCLUDES)
#CFLAGS =-O3 $(DEFINES) $(INCLUDES)
all: $(PRC)
$(PRC): grc.stamp bin.stamp
$(BUILDPRC) $(PRC) $(ICONTEXT) $(APPID) *.grc *.bin $(LINKFILES)
ls -l *.prc
grc.stamp: $(APP)
$(OBJRES) $(APP)
touch $@
$(APP): $(SRC:.c=.o)
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
bin.stamp: $(RCP)
$(PILRC) $^ $(BINDIR)
touch $@
Timber.o: Timber.c TimberRsc.h
$(CC) $(CFLAGS) -c $< -o $@
# touch $<
# enable this line if you want to compile EVERY time.
depend dep:
$(CC) -M $(SRC) > .dependencies
clean:
rm -rf *.o $(APP) *.bin *.grc *.stamp
backup:
rm -rf *.o $(APP) *.bin *.grc *.stamp *'~'
(cd ..; gtar cvzf Timber.tgz Timber; cd Timber)