buildsystem,epj2make,ide,tarball; added cleantarget and adjusted realclean and distcl...
[sdk] / deps / jpeg-6b / Makefile
index 68c98f8..0d5d80a 100755 (executable)
@@ -1,4 +1,4 @@
-.PHONY: all objdir clean realclean distclean
+.PHONY: all objdir cleantarget clean realclean distclean
 
 # CORE VARIABLES
 
@@ -154,7 +154,7 @@ RESOURCES =
 LIBS += $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
 
 PRJ_CFLAGS += \
-        $(if $(DEBUG), -g, -O2 -ffast-math) $(FPIC) -w
+        $(if $(DEBUG), -g, -O2 -ffast-math) $(FPIC) -w $(FORCE_32_BIT)
 
 
 
@@ -329,13 +329,15 @@ $(OBJ)jutils.o: jutils.c
 $(OBJ)transupp.o: transupp.c
        $(CC) $(CFLAGS) $(PRJ_CFLAGS) -c transupp.c -o $(OBJ)transupp.o
 
-clean: objdir
+cleantarget: objdir
        $(call rmq,$(TARGET))
+
+clean: cleantarget
        $(call rmq,$(_OBJECTS1))
        $(call rmq,$(_OBJECTS2))
 
-realclean: clean
+realclean: cleantarget
        $(call rmrq,$(OBJ))
 
-distclean:
+distclean: cleantarget
        $(call rmrq,obj/)