From 32c02216ce3df45004a933cc16745880841262e5 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sat, 27 Mar 2021 00:10:49 +0300 Subject: Attempt to make types more generic. Thing doesn't work now. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3