* src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
[fw/sdcc] / device / lib / pic16 / startup / Makefile
index f8a86a4580ff534202e31a37b7588aaf9561592f..882981fa837e9a8e783942bc8988ae152c511acd 100644 (file)
@@ -1,61 +1,6 @@
-#
-# Makefile - Makefile to build startup files
-#
-# This file is part of the GNU PIC Library.
-#
-# January, 2004
-# The GNU PIC Library is maintained by,
-#      Vangelis Rokas <vrokas@otenet.gr>
-#
-# $Id$
-#
-#
+topsrcdir=..
 
+SUBDIRS = 
+TARGETS = $(OBJS)
 
-PRJDIR = ../../../..
-include ../Makefile.common
-
-
-SRCS   =       crt0    \
-               crt0i   \
-               crt0iz
-
-
-# add nostdinc and nostdlib for this device libraries
-COMPILE_FLAGS  += $(MODELFLAGS) $(OPT_FLAGS)
-COMPILE_FLAGS  += --nostdinc --nostdlib --fommit-frame-pointer
-
-CFLAGS  += $(CSTD)
-
-CFILES = $(patsubst %,%.c,$(SRCS))
-OFILES = $(patsubst %.c,%.o,$(CFILES))
-
-
-%.o: %.c
-       $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
-
-
-all: build-library
-       @$(CP) -v $(OFILES) ../bin
-
-build-library: compile-sources
-
-compile-sources: $(OFILES)
-
-
-clean:
-       rm -f *.o *.lst *.asm
-
-
-clean-intermediate:
-       $(RM) -f *.lst *.asm *.dump*
-
-dep .depend:
-       rm -f .depend
-       for temp in $(CFILES); do               \
-               $(CPP) $(MM) $(CFLAGS) $$temp > .tmpdepend;     \
-               $(SED) s/.rel/.o/g .tmpdepend >> .depend;       \
-               $(RM) -f .tmpdepend;    \
-       done
-       
-include .depend
+include $(topsrcdir)/Makefile.subdir