5 OBJECTS = tinibios.rel memcpyx.rel lcd390.rel i2c390.rel rtc390.rel
7 SOURCES = $(patsubst %.rel,%.c,$(OBJECTS))
9 CPPFLAGS = -I../../include
10 CFLAGS = -mds390 $(CPPFLAGS) $(VERBOSE)
12 all: $(OBJECTS) libds390.lib
15 rm -f *.lst *.rel *.sym *.cdb *.asm \#* *~ *.rst *.hex
16 rm -f *.ihx temp.lnk *.map *.lib
19 make clean ; rm Makefile.dep
21 libds390.lib: $(OBJECTS)
23 for libfile in $(OBJECTS); do \
24 echo $$libfile >>$@; \
30 # Creating dependencies
31 # ---------------------
34 Makefile.dep: $(SOURCES)
36 for i in $(SOURCES); do \
37 $(CC) -M $(CPPFLAGS) $$i >$${i}.dep; \
38 cat $${i}.dep >>Makefile.dep; \