diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 57 |
1 files changed, 24 insertions, 33 deletions
@@ -1,34 +1,31 @@ .POSIX: -CC=c99 + +CC=cc CFLAGS=-Wall -Wextra -Wno-unused-parameter -E_CGLAGS=$$(pkg-config --cflags gtk+-3.0 jansson libcurl) $(CFLAGS) +E_CGLAGS=$$(pkg-config --cflags gtk+-3.0 jansson libcurl) \ + -Ilibgs/src $(CFLAGS) LDFLAGS= -E_LDFLAGS=$$(pkg-config --libs gtk+-3.0 jansson libcurl) $(LDFLAGS) +E_LDFLAGS=$$(pkg-config --libs gtk+-3.0 jansson libcurl) \ + -Llibgs -lgs $(LDFLAGS) DESTDIR= PREFIX=/usr/local BINDIR=$(PREFIX)/bin OBJECTS=src/main.o \ - src/string-util.o \ - src/instance_info.o \ - src/http.o \ - src/status.o \ - src/account.o \ - src/timeline.o \ - src/auth.o \ - src/register.o \ src/login_window.o \ src/main_window.o \ src/config.o \ - src/log.o + src/log.o \ all: ap_client ap_client: $(OBJECTS) - $(CC) $(E_LDFLAGS) -o ap_client $(OBJECTS) + @echo $(CC) $(E_LDFLAGS) -o $@ $(OBJECTS) + @$(CC) $(E_LDFLAGS) -o $@ $(OBJECTS) .c.o: - $(CC) $(E_CGLAGS) -c -o $@ $< + @echo $(CC) $(E_CGLAGS) -c -o $@ $< + @$(CC) $(E_CGLAGS) -c -o $@ $< install: ap_client mkdir -p $(DESTDIR)$(BINDIR) @@ -42,23 +39,17 @@ clean: uninstall: rm -f $(DESTDIR)$(BINDIR)/ap_client -src/account.o: src/account.c src/account.h src/log.h -src/auth.o: src/auth.c src/string-util.h src/auth.h src/http.h \ - src/config.h src/log.h -src/config.o: src/config.c src/string-util.h src/config.h src/log.h -src/http.o: src/http.c src/string-util.h src/auth.h src/config.h \ - src/log.h -src/instance_info.o: src/instance_info.c src/instance_info.h src/log.h +src/config.o: src/config.c src/config.h src/log.h +src/log.o: src/log.c src/log.h +src/login_window.o: src/login_window.c src/main_window.h src/log.h +src/main.o: src/main.c src/config.h src/main_window.h +src/config.o: src/config.c src/config.h src/log.h +src/log.o: src/log.c src/log.h +src/login_window.o: src/login_window.c src/main_window.h src/log.h +src/main.o: src/main.c src/config.h src/main_window.h +src/config.o: src/config.c src/config.h src/log.h src/log.o: src/log.c src/log.h -src/login_window.o: src/login_window.c src/auth.h src/register.h \ - src/http.h src/timeline.h src/status.h src/account.h src/main_window.h \ - src/log.h -src/main.o: src/main.c src/http.h src/config.h src/main_window.h -src/main_window.o: src/main_window.c src/auth.h src/http.h src/timeline.h \ - src/status.h src/account.h src/log.h src/config.h src/login_window.h \ - src/string-util.h -src/register.o: src/register.c src/http.h src/config.h src/log.h -src/status.o: src/status.c src/status.h src/account.h src/log.h -src/string-util.o: src/string-util.c -src/timeline.o: src/timeline.c src/timeline.h src/status.h src/account.h \ - src/auth.h src/config.h src/http.h src/string-util.h src/log.h +src/login_window.o: src/login_window.c src/main_window.h src/log.h +src/main.o: src/main.c src/config.h src/main_window.h +src/main_window.o: src/main_window.c src/log.h src/config.h \ + src/login_window.h |