* device/lib/Makefile.in: removed comment line with model-pic16,
[fw/sdcc] / device / lib / pic16 / startup / Makefile
1 #
2 # Makefile - Makefile to build startup files
3 #
4 # This file is part of the GNU PIC Library.
5 #
6 # January, 2004
7 # The GNU PIC Library is maintained by,
8 #       Vangelis Rokas <vrokas@otenet.gr>
9 #
10 # $Id$
11 #
12 #
13
14
15 PRJDIR  = ../../../..
16 include ../Makefile.common
17
18
19 SRCS    =       crt0    \
20                 crt0i   \
21                 crt0iz
22
23
24 # add nostdinc and nostdlib for this device libraries
25 COMPILE_FLAGS   += --nostdinc --nostdlib
26
27 CFILES  = $(patsubst %,%.c,$(SRCS))
28 OFILES  = $(patsubst %.c,%.o,$(CFILES))
29
30
31 %.o: %.c
32         $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
33
34
35 all: build-library
36         @$(CP) -v $(OFILES) ../bin
37
38 build-library: compile-sources
39
40 compile-sources: $(OFILES)
41
42
43 clean:
44         rm -f *.o *.lst *.asm
45
46
47 clean-intermediate:
48         $(RM) -f *.lst *.asm *.dump*