aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/lnx
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/buildsys/lnx')
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-gcc-ext.inc2
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-gcc-flext.inc2
-rw-r--r--externals/grill/flext/buildsys/lnx/gnumake-gcc.inc12
3 files changed, 9 insertions, 7 deletions
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-gcc-ext.inc b/externals/grill/flext/buildsys/lnx/gnumake-gcc-ext.inc
index e2c15730..1e2d61d3 100644
--- a/externals/grill/flext/buildsys/lnx/gnumake-gcc-ext.inc
+++ b/externals/grill/flext/buildsys/lnx/gnumake-gcc-ext.inc
@@ -31,7 +31,7 @@ $(TARGET):: $(COBJS) $(CPPOBJS)
##############################################
_clean_:
- rm $(COBJS) $(CPPOBJS) $(TARGET)
+ -rm -r $(TARGETPATH)
##############################################
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-gcc-flext.inc b/externals/grill/flext/buildsys/lnx/gnumake-gcc-flext.inc
index ec55d6b8..ae9b4a48 100644
--- a/externals/grill/flext/buildsys/lnx/gnumake-gcc-flext.inc
+++ b/externals/grill/flext/buildsys/lnx/gnumake-gcc-flext.inc
@@ -31,7 +31,7 @@ endif
##############################################
_clean_:
- rm $(COBJS) $(CPPOBJS) $(TARGET)
+ -rm -r $(TARGETPATH)
##############################################
diff --git a/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc b/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc
index 70a4601e..9927fb1a 100644
--- a/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc
+++ b/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc
@@ -7,18 +7,20 @@ TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
CFLAGS += -pthread
-LDFLAGS += -pthread -shared
+LDFLAGS += -pthread -shared -Wl,-x
##############################################
-CFLAGS += $(UFLAGS)
-
ifdef DEBUG
-CFLAGS += -g -D_DEBUG
+CFLAGS += -g
+else
+ifdef PROFILE
+CFLAGS += -g -pg
+LDFLAGS += -pg
else
-CFLAGS += $(OFLAGS) -DNDEBUG
LDFLAGS += -Wl,-S
endif
+endif
##############################################