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 += --nostdinc --nostdlib
27 CFILES = $(patsubst %,%.c,$(SRCS))
28 OFILES = $(patsubst %.c,%.o,$(CFILES))
32 $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
36 @$(CP) -v $(OFILES) ../bin
38 build-library: compile-sources
40 compile-sources: $(OFILES)
48 $(RM) -f *.lst *.asm *.dump*