home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
pub
/
palmos
/
linkmaster-src-1.0.4.tar.gz
/
linkmaster-src-1.0.4.tar
/
linkmaster-1.0.4
/
Makefile
< prev
next >
Wrap
Makefile
|
2000-10-22
|
2KB
|
70 lines
## Makefile for LinkMaster
TARGET = linkmaster
APPNAME = "LinkMaster"
APPID = "Link"
VERSION=1.0.4
OBJS = $(TARGET).o newlink.o linkaware.o prefsform.o
LIBS =
CC = m68k-palmos-coff-gcc
CFLAGS = -Wall -g -O2
PILRC = pilrc
OBJRES = m68k-palmos-coff-obj-res
NM = m68k-palmos-coff-nm
BUILDPRC = build-prc
PILOTXFER = pilot-xfer
all: $(TARGET).prc
.S.o:
$(CC) $(TARGETFLAGS) -c $<
.c.s:
$(CC) $(CSFLAGS) $<
$(TARGET).prc: code0000.$(TARGET).grc code0001.$(TARGET).grc data0000.$(TARGET).grc pref0000.$(TARGET).grc rloc0000.$(TARGET).grc bin.res
$(BUILDPRC) $(TARGET).prc $(APPNAME) $(APPID) code0001.$(TARGET).grc code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin pref0000.$(TARGET).grc rloc0000.$(TARGET).grc
code0000.$(TARGET).grc: $(TARGET)
$(OBJRES) $(TARGET)
code0001.$(TARGET).grc: code0000.$(TARGET).grc
data0000.$(TARGET).grc: code0000.$(TARGET).grc
pref0000.$(TARGET).grc: code0000.$(TARGET).grc
rloc0000.$(TARGET).grc: code0000.$(TARGET).grc
bin.res: $(TARGET).rcp $(TARGET).bmp
$(PILRC) $(TARGET).rcp .
touch bin.res
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
! $(NM) -u $(TARGET) | grep .
send: $(TARGET).prc
$(PILOTXFER) -i $(TARGET).prc
depend:
makedepend -Y -I. *.c
clean:
-rm -f *.[oa] $(TARGET) *.bin bin.res *.grc Makefile.bak
veryclean: clean
-rm -f $(TARGET).prc pilot.ram pilot.scratch
backup:
tar czvf $(HOME)/backup/linkmaster/$(shell date +%Y%m%d).tar.gz .
dist:
zip linkmaster-$(VERSION).zip linkmaster.prc proxy/db/proxydb.prc proxy/ab/proxyaddr.prc proxy/al/proxyapp.prc proxy/fi/proxyfind.prc hack/linkhistoryhack.prc readme.txt
# zip linkmaster-source-$(VERSION).zip ChangeLog Makefile *.c *.h *.rcp *.bmp hack/Makefile hack/*.c hack/*.h hack/*.rcp proxy/db/*.c proxy/db/*.h proxy/db/Makefile proxy/db/*.rcp proxy/ab/Makefile proxy/ab/*.c proxy/ab/*.h proxy/ab/*.rcp proxy/al/*.c proxy/al/*.h proxy/al/*.rcp proxy/al/Makefile proxy/fi/*.c proxy/fi/*.h proxy/fi/*.rcp proxy/fi/Makefile
zip linkmaster-devkit-$(VERSION).zip linkaware.c linkaware.h