Yet another intermediate commit
[fw/sdcc] / src / avr / Makefile
index 1419c26030c9f387a8e268e629ff3572cfab72fa..2cebc54583e98ccaf5c5bbf47b0e15dd5ffb3067 100644 (file)
@@ -2,10 +2,9 @@ PRJDIR = ../..
 
 include $(PRJDIR)/Makefile.common
 
-OBJ = gen.o ralloc.o main.o
+OBJ = ralloc.o main.o gen.o
 LIB = port.a
 
-CFLAGS = -ggdb -Wall -O2
 CFLAGS += -I.. -I. -I../..
 
 all: $(LIB)
@@ -15,7 +14,7 @@ main.o: main.c peeph.rul
 $(LIB): peeph.rul $(OBJ)
        rm -f $(LIB)
        ar r $(LIB) $(OBJ)
-       ranlib $(LIB)
+       $(RANLIB) $(LIB)
 
 peeph.rul: peeph.def
        $(AWK) -f ../SDCCpeeph.awk peeph.def > peeph.rul