| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-01 22:47:31 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-01 22:47:31 +0200 |
| commit | b05361b3baa804a2c67e74dbd66828cb8517ed91 (patch) | |
| tree | 7ee82f12c0a1eecab4ab9daf644a58dd0a701c8e /Makefile | |
| parent | ba71528805f777871f52fc278858f56677307064 (diff) | |
Switched to Makefiles.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ef34ce9 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +################################################################################ +PTHREADS_LIB_FLAGS = -pthread +LIBIRCCLIENT_LIB_FLAGS = +include Makefile_libircclient +################################################################################ +CFLAGS += -O3 +CFLAGS += -D_POSIX_SOURCE +CFLAGS += -D_POSIX_C_SOURCE=200809L +CFLAGS += $(PTHREADS_LIB_FLAGS) +CFLAGS += $(LIBIRCCLIENT_LIB_FLAGS) +################################################################################ +EXECUTABLE = jh-irc +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) |


