struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / non-free / lib / pic14 / libdev / Makefile.in
blob60e8262d21a5039722bbe99ecad19c70f45577d3
1 SDCC_BASE = ../../../../..
2 INSTALL_DIR = ../bin
4 VPATH = @srcdir@
5 srcdir = @srcdir@
7 CC = $(SDCC_BASE)/bin/sdcc
8 LIB = @GPLIB@
9 CP = @CP@
10 RM = @RM@
11 RMDIR = @RMDIR@
13 CPPFLAGS = -I$(srcdir)/../../../../include/pic14 -I$(srcdir)/../../../../non-free/include/pic14
15 C_SRC = $(addsuffix .c, $(addprefix pic, @GOOD_PICS@))
16 OBJS = $(C_SRC:.c=.o)
17 LIBS = $(addprefix $(INSTALL_DIR)/,$(OBJS:.o=.lib))
19 all : $(LIBS)
21 ifeq (0,1)
22 # useful while fixing .inc files
23 GPUTILS = /opt/modules/gputils-0.13.3/share/gputils
24 pic%.c : $(GPUTILS)/header/p%.inc
25 -$(SDCC_BASE)/support/scripts/inc2h.pl $* $(GPUTILS);
26 -mv pic$*.h $(SDCC_BASE)/device/non-free/include/pic/pic$*.h;
27 endif
29 pic%.o : pic%.c
30 ifndef SILENT
31 @echo "[ CC ] ==> $(patsubst $(top_builddir)/%,%,$@)"
32 endif
33 @-$(CC) -mpic14 -p$* $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$<"
35 $(INSTALL_DIR)/%.lib : %.o
36 @-$(LIB) -c "$@" "$<";
38 install : all
40 clean : clean-intermediate
41 @-$(RM) *.asm
42 @-$(RM) $(OBJS) $(LIBS)
43 @-$(RMDIR) ../build/libdev
45 distclean: clean
46 @-$(RM) Makefile
48 clean-intermediate :
49 @-$(RM) *.lst *.d *.adb