Makefiles: Tweaks for Debian
[sdk] / eda / libeda / Makefile
index a450d9e..84adf01 100644 (file)
@@ -11,6 +11,11 @@ OBJ = obj/$(CONFIG).$(PLATFORM)/
 
 RES = 
 
+ifndef DEBIAN_PACKAGE
+CFLAGS =
+endif
+OFLAGS =
+
 # CROSS-PLATFORM MAGIC
 
 include ../../include.mk
@@ -88,13 +93,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 -defaultns eda
 
-OFLAGS = -m32 \
+OFLAGS += -m32 \
         -L../../obj/$(PLATFORM)/bin \
         -L../../obj/$(PLATFORM)/lib