Makefiles: Force building 32 or 64 bit by setting ARCH=32 or 64
[sdk] / compiler / bootstrap / ecp / Makefile
index c0239c8..a92781d 100644 (file)
@@ -60,7 +60,7 @@ LIBS += \
 endif
 
 PRJ_CFLAGS += \
-        $(if $(DEBUG), -g, -O2 -ffast-math) $(FORCE_32_BIT) $(FPIC) -w \
+        $(if $(DEBUG), -g, -O2 -ffast-math) $(FPIC) -w \
                         -DECERE_STATIC
 
 
@@ -85,9 +85,9 @@ endif
 CECFLAGS += -cpp $(_CPP)
 
 ifndef STATIC_LIBRARY_TARGET
-OFLAGS += $(FORCE_32_BIT) \
-        -L../ecere/obj/bootstrap.$(PLATFORM) \
-        -L../libec/obj/bootstrap.$(PLATFORM)
+OFLAGS += \
+        -L../ecere/obj/bootstrap.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX) \
+        -L../libec/obj/bootstrap.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)
 endif
 
 # TARGETS
@@ -115,8 +115,8 @@ clean: objdir
        $(call rmq,$(TARGET))
        $(call rmq,$(OBJECTS))
 
-realclean: clean
+realclean: objdir
        $(call rmrq,$(OBJ))
 
-distclean:
+distclean: objdir
        $(call rmrq,obj/)