1 SDCC_BASE
= ..
/..
/..
/..
/..
7 CC
= $(SDCC_BASE
)/bin
/sdcc
13 CPPFLAGS
= -I
$(srcdir)/..
/..
/..
/..
/include/pic14
-I
$(srcdir)/..
/..
/..
/..
/non-free
/include/pic14
15 C_SRC
= $(addsuffix .c
, $(addprefix pic
, @GOOD_PICS@
))
17 LIBS
= $(addprefix $(INSTALL_DIR
)/,$(OBJS
:.o
=.lib
))
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
;
31 @echo
"[ CC ] ==> $(patsubst $(top_builddir)/%,%,$@)"
33 @
-$(CC
) -mpic14
-p
$* $(CPPFLAGS
) $(CFLAGS
) -o
"$@" -c
"$<"
35 $(INSTALL_DIR
)/%.lib
: %.o
36 @
-$(LIB
) -c
"$@" "$<";
40 clean : clean-intermediate
42 @
-$(RM
) $(OBJS
) $(LIBS
)
43 @
-$(RMDIR
) ..
/build
/libdev
49 @
-$(RM
) *.lst
*.d
*.adb