#### # Macros PROGRAM=hello CC=m68k-palmos-gcc PILRC=pilrc OBJRES=m68k-palmos-obj-res ICONTEXT='Hello!' BUILDPRC=build-prc APID=TEST CFLAGS=-palmos3.5 -Wall -g LFLAGS=-g SOURCES=hello.c OBJS=hello.o PRC=$(PROGRAM).prc RESOURCES=$(PROGRAM).rcp |
# Major targets all: $(PRC) $(PRC): $(PROGRAM) bin.res $(BUILDPRC) $(PRC) $(ICONTEXT) $(APID) *.bin *.grc $(PROGRAM): $(OBJS) $(CC) -o $(PROGRAM) $(OBJS) $(LFLAGS) $(OBJRES) $(PROGRAM) bin.res: $(RESOURCES) resource.h icon.bmp $(PILRC) $(RESOURCES) touch bin.res ctags: ctags $(SOURCES) clean: rm -f *.bin *.grc *.o bin.res tags $(PRC) $(PROGRAM) dist: clean rm -f ../hello.zip zip -9 ../hello *.[ch] *.rcp *.bmp Makefile |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |