diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -12,9 +12,9 @@ HEADERS = | |||
12 | LIBRARIES = gnunetutil gnunetchat | 12 | LIBRARIES = gnunetutil gnunetchat |
13 | PACKAGES = libhandy-1 gtk+-3.0 libnotify | 13 | PACKAGES = libhandy-1 gtk+-3.0 libnotify |
14 | 14 | ||
15 | CC ?= gcc | 15 | GNU_CC ?= gcc |
16 | LD ?= gcc | 16 | GNU_LD ?= gcc |
17 | RM ?= rm | 17 | GNU_RM ?= rm |
18 | 18 | ||
19 | CFLAGS += -pedantic -Wall -Wextra -march=native -ggdb3 | 19 | CFLAGS += -pedantic -Wall -Wextra -march=native -ggdb3 |
20 | LDFLAGS += | 20 | LDFLAGS += |
@@ -37,10 +37,10 @@ release: CFLAGS += $(RELEASEFLAGS) | |||
37 | release: $(BINARY) | 37 | release: $(BINARY) |
38 | 38 | ||
39 | %.o: %.c | 39 | %.o: %.c |
40 | $(CC) $(CFLAGS) -c $< -o $@ $(LIBRARY_FLAGS) $(PACKAGE_FLAGS) | 40 | $(GNU_CC) $(CFLAGS) -c $< -o $@ $(LIBRARY_FLAGS) $(PACKAGE_FLAGS) |
41 | 41 | ||
42 | $(BINARY): $(OBJECT_FILES) | 42 | $(BINARY): $(OBJECT_FILES) |
43 | $(LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS) $(PACKAGE_FLAGS) | 43 | $(GNU_LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS) $(PACKAGE_FLAGS) |
44 | 44 | ||
45 | .PHONY: install | 45 | .PHONY: install |
46 | 46 | ||
@@ -50,10 +50,10 @@ install: | |||
50 | .PHONY: uninstall | 50 | .PHONY: uninstall |
51 | 51 | ||
52 | uninstall: | 52 | uninstall: |
53 | $(RM) -f $(addsuffix $(BINARY), $(addprefix $(INSTALL_DIR), bin/)) | 53 | $(GNU_RM) -f $(addsuffix $(BINARY), $(addprefix $(INSTALL_DIR), bin/)) |
54 | 54 | ||
55 | .PHONY: clean | 55 | .PHONY: clean |
56 | 56 | ||
57 | clean: | 57 | clean: |
58 | $(RM) -f $(BINARY) | 58 | $(GNU_RM) -f $(BINARY) |
59 | $(RM) -f $(OBJECT_FILES) | 59 | $(GNU_RM) -f $(OBJECT_FILES) |