2 # Makefile - Makefile to build startup files
4 # This file is part of the GNU PIC Library.
7 # The GNU PIC Library is maintained by,
8 # Vangelis Rokas <vrokas@otenet.gr>
16 include ../Makefile.common
24 # add nostdinc and nostdlib for this device libraries
25 COMPILE_FLAGS += --no-peep --pomit-config-words --pomit-ivt
26 COMPILE_FLAGS += $(MODELFLAGS) --nostdinc --nostdlib
28 CFILES = $(patsubst %,%.c,$(SRCS))
29 OFILES = $(patsubst %.c,%.o,$(CFILES))
33 $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
37 @$(CP) -v $(OFILES) ../bin
39 build-library: compile-sources
41 compile-sources: $(OFILES)
49 $(RM) -f *.lst *.asm *.dump*