buildsystem,epj2make,ide,tarball; added cleantarget and adjusted realclean and distcl...
[sdk] / compiler / bootstrap / ecp / Makefile
index 1345741..f099f9a 100644 (file)
@@ -17,6 +17,7 @@ ifndef DEBIAN_PACKAGE
 CFLAGS =
 LDFLAGS =
 endif
+PRJ_CFLAGS =
 CECFLAGS =
 OFLAGS =
 LIBS =
@@ -58,7 +59,7 @@ LIBS += \
        $(call _L,ecBootstrap)
 endif
 
-CFLAGS += \
+PRJ_CFLAGS += \
         $(if $(DEBUG), -g, -O2 -ffast-math) $(FORCE_32_BIT) $(FPIC) -w \
                         -DECERE_STATIC
 
@@ -105,17 +106,17 @@ endif
 # OBJECT RULES
 
 $(OBJ)ecp.o: bootstrap/ecp.c
-       $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/ecp.c -o $(OBJ)ecp.o
+       $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/ecp.c -o $(OBJ)ecp.o
 
 $(OBJ)ecp.main.o: bootstrap/ecp.main.c
-       $(CC) $(CFLAGS) $(FVISIBILITY) -c bootstrap/ecp.main.c -o $(OBJ)ecp.main.o
+       $(CC) $(CFLAGS) $(PRJ_CFLAGS) $(FVISIBILITY) -c bootstrap/ecp.main.c -o $(OBJ)ecp.main.o
 
 clean: objdir
        $(call rmq,$(TARGET))
        $(call rmq,$(OBJECTS))
 
-realclean: clean
+realclean: objdir
        $(call rmrq,$(OBJ))
 
-distclean:
+distclean: objdir
        $(call rmrq,obj/)