Makefiles: Tweaks for Debian
[sdk] / ear / cmd / Makefile
index 24c0519..47e6995 100644 (file)
@@ -36,6 +36,11 @@ RESOURCES = \
        locale/es_ES/LC_MESSAGES/ear.mo \
        ../extract/obj/release.$(PLATFORM)/extract$(E)
 
+ifndef DEBIAN_PACKAGE
+CFLAGS =
+endif
+OFLAGS =
+
 # CROSS-PLATFORM MAGIC
 
 include ../../include.mk
@@ -50,13 +55,13 @@ EAR := $(call psep,../../obj/$(PLATFORM)/bin/ear)
 
 # FLAGS
 
-CFLAGS = -fmessage-length=0 -O2 -ffast-math -m32 $(FPIC) -w
+CFLAGS += -fmessage-length=0 -O2 -ffast-math -m32 $(FPIC) -w
 
 CECFLAGS =
 
 ECFLAGS = -nolinenumbers
 
-OFLAGS = -m32 \
+OFLAGS += -m32 \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib