aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-02-25 10:35:06 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-03-01 17:10:09 +0100
commit0365e093104248439c6df595fcf38d102b2c2fb9 (patch)
tree82a66a25adfbf1a6c4f791f018a21a8f3597cab1 /Makefile
parentfff4901b230b314e34e738f26809ba7d675f45a5 (diff)
downloadmessenger-cli-0365e093104248439c6df595fcf38d102b2c2fb9.tar.gz
messenger-cli-0365e093104248439c6df595fcf38d102b2c2fb9.zip
Added a first box dynamically to the center
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 8d96510..41fc57e 100644
--- a/Makefile
+++ b/Makefile
@@ -6,17 +6,17 @@ BINARY = messenger-cli
6SOURCES = messenger_cli.c 6SOURCES = messenger_cli.c
7HEADERS = 7HEADERS =
8 8
9LIBRARIES = gnunetchat gnunetutil 9LIBRARIES = gnunetchat gnunetutil ncurses
10 10
11CC ?= gcc 11GNU_CC ?= gcc
12LD ?= gcc 12GNU_LD ?= gcc
13RM ?= rm 13GNU_RM ?= rm
14 14
15CFLAGS += -pedantic -Wall -Wextra -march=native -ggdb3 15CFLAGS += -pedantic -Wall -Wextra -ggdb3 -Wno-overlength-strings
16LDFLAGS += 16LDFLAGS +=
17 17
18DEBUGFLAGS = -O0 -D _DEBUG 18DEBUGFLAGS = -O0 -D _DEBUG
19RELEASEFLAGS = -O2 -D NDEBUG -fwhole-program 19RELEASEFLAGS = -O2 -D NDEBUG
20 20
21SOURCE_FILES = $(addprefix $(SOURCE_DIR), $(SOURCES)) 21SOURCE_FILES = $(addprefix $(SOURCE_DIR), $(SOURCES))
22OBJECT_FILES = $(SOURCE_FILES:%.c=%.o) 22OBJECT_FILES = $(SOURCE_FILES:%.c=%.o)
@@ -32,10 +32,10 @@ release: CFLAGS += $(RELEASEFLAGS)
32release: $(BINARY) 32release: $(BINARY)
33 33
34%.o: %.c 34%.o: %.c
35 $(CC) $(CFLAGS) -c $< -o $@ $(LIBRARY_FLAGS) 35 $(GNU_CC) $(CFLAGS) -c $< -o $@ $(LIBRARY_FLAGS)
36 36
37$(BINARY): $(OBJECT_FILES) 37$(BINARY): $(OBJECT_FILES)
38 $(LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS) 38 $(GNU_LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS)
39 39
40.PHONY: install 40.PHONY: install
41 41
@@ -45,10 +45,10 @@ install:
45.PHONY: uninstall 45.PHONY: uninstall
46 46
47uninstall: 47uninstall:
48 $(RM) -f $(addsuffix $(BINARY), $(addprefix $(INSTALL_DIR), bin/)) 48 $(GNU_RM) -f $(addsuffix $(BINARY), $(addprefix $(INSTALL_DIR), bin/))
49 49
50.PHONY: clean 50.PHONY: clean
51 51
52clean: 52clean:
53 $(RM) -f $(BINARY) 53 $(GNU_RM) -f $(BINARY)
54 $(RM) -f $(OBJECT_FILES) 54 $(GNU_RM) -f $(OBJECT_FILES)