diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-27 00:10:49 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-27 00:10:49 +0300 |
commit | 32c02216ce3df45004a933cc16745880841262e5 (patch) | |
tree | 6ac8a6de24b84d1ffe37195ee0de5313ba1e176c /Makefile | |
parent | ea1cd66193d64bb1cd56c24f0db011eadbf558e6 (diff) | |
download | csx-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-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |