Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / src / izt / Makefile
index a159b4b9d9c598f3868d91a6441e874a8f532742..b37db7676194be33be5414843571329d38ad1c29 100644 (file)
@@ -1,25 +1,6 @@
-PRJDIR = ../..
+srcdir       = .
+top_builddir = ../../
+top_srcdir   = ../..
 
-include $(PRJDIR)/Makefile.common
-
-OBJ = i186.o ralloc.o gen.o tlcs900h.o gen_generic.o aop.o util.o
-LIB = port.a
-
-CFLAGS += -I.. -I. -I../..
-LDFLAGS = -ggdb
-
-all: $(LIB)
-
-$(LIB): $(OBJ)
-       rm -f $(LIB)
-       ar r $(LIB) $(OBJ)
-       $(RANLIB) $(LIB)
-
-%.rul: %.def
-       $(AWK) -f ../SDCCpeeph.awk $< > $@
-
-main.o: main.c peeph.rul peeph-z80.rul peeph-gbz80.rul mappings.i
-
-i186.o: i186.c i186_mappings.i
-
-include clean.mk
+# Make all in this directory
+include ../port.mk