summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/extras.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/project/extras.mk b/project/extras.mk
index aa488db..4c0ad40 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -1,6 +1,14 @@
CFLAGS_SHARED_ATTR += -DPTYC_PRE_ALPHA -DPTYC_EXPORT
-CFLAGS_STATIC_ATTR += -DPTYC_PRE_ALPHA -DPTYC_STATIC -fvisibility=protected
-CFLAGS_APP_ATTR += -DPTYC_APP -fvisibility=protected
+CFLAGS_STATIC_ATTR += -DPTYC_PRE_ALPHA -DPTYC_STATIC -mstatic
+CFLAGS_STATIC_ATTR += -DPE_STATIC -DDALIST_STATIC -DNTAPI_STATIC
+CFLAGS_APP_ATTR += -DPTYC_APP
+
+ifeq ($(ALL_STATIC),yes)
+CFLAGS_APP_ATTR += $(CFLAGS_STATIC_ATTR)
+else
+CFLAGS_APP_ATTR += -fvisibility=protetcted
+endif
+
CFLAGS_CONFIG += -ffreestanding
CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)