| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-01 21:24:16 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-01 21:24:16 +0200 |
| commit | 2096085d658947d5fb7685090d9f26bd23595f4d (patch) | |
| tree | cb57cac18facf139f21bbb39f49664b06f0abb62 /Makefile | |
| parent | d582b266356b79e6879d7ae30b8defe3a565ee03 (diff) | |
Switches to Makefiles.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8a77d80 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +################################################################################ +PTHREADS_LIB_FLAGS = -pthread +################################################################################ +CFLAGS += -O3 +CFLAGS += -D_POSIX_SOURCE +CFLAGS += -D_POSIX_C_SOURCE=200809L +CFLAGS += $(PTHREADS_LIB_FLAGS) +################################################################################ +EXECUTABLE = jh-lowercase +SRC_DIR = ./src +################################################################################ +export +################################################################################ + +build: $(EXECUTABLE) + +$(EXECUTABLE): $(SRC_DIR)/export.a + $(CC) $(CFLAGS) -o $@ $< + +$(SRC_DIR)/export.a: + $(MAKE) -C $(SRC_DIR) export.a + +clean: + $(MAKE) -C $(SRC_DIR) clean + rm -f $(EXECUTABLE) |


