aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-27 00:10:49 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-27 00:10:49 +0300
commit32c02216ce3df45004a933cc16745880841262e5 (patch)
tree6ac8a6de24b84d1ffe37195ee0de5313ba1e176c /Makefile
parentea1cd66193d64bb1cd56c24f0db011eadbf558e6 (diff)
downloadcsx-32c02216ce3df45004a933cc16745880841262e5.tar
csx-32c02216ce3df45004a933cc16745880841262e5.tar.xz
csx-32c02216ce3df45004a933cc16745880841262e5.zip
Attempt to make types more generic.
Thing doesn't work now.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f2fe69a..c0f15c4 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,8 @@ INCDIR ?= /usr/include
LIBDIR ?= /usr/lib
# Specify location of man pages on your machine:
MANDIR ?= /usr/share/man
+# Are you using Windows?
+WINDOWS ?= no
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@@ -22,7 +24,7 @@ LFLAGS = -L$(BUILD) -lcsx
ifeq '$(DEBUG)' 'yes'
CFLAGS += -g -O0
else
-CFLAGS += -O3
+CFLAGS += -O2
LFLAGS += -static
endif
@@ -83,7 +85,9 @@ uninstall:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Compilation
+ifneq '$(WINDOWS)' 'yes'
-include $(DEPS)
+endif
# Packing object files into library:
$(TARGET): $(OBJ)
@@ -98,8 +102,10 @@ $(BUILD)/%: %.c $(TARGET)
$(COMPILE) $(CFLAGS) $(XINC) $< $(LFLAGS) -o $@
# Create build directories, if no such:
+ifneq '$(WINDOWS)' 'yes'
$(SRCBUILD) $(XBLD):
mkdir -p $@
+endif
# Generate dependency file, adding corresponding build prefixes:
$(DEPS): $(SRC) $(EXASRC) $(EXTER_H) $(INTER_H) $(INCLUDE)/csx.h