You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
997 B

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -2,11 +2,11 @@ prefix ?= /usr/local
  4. libdir ?= $(prefix)/lib
  5. includedir ?= $(prefix)/include
  6. -CFLAGS:=-Wall -g -Wextra $(shell pkg-config glib-2.0 --cflags) -Wswitch-enum -std=gnu11 -O2 -fPIC
  7. +CFLAGS+=-Wall -g -Wextra $(shell pkg-config glib-2.0 --cflags) -Wswitch-enum -std=gnu11 -fPIC
  8. SO_VERSION = 0
  9. VERSION = 0
  10. INSTALL = install
  11. -LDLIBS:=$(shell pkg-config glib-2.0 --libs) -lz
  12. +LDFLAGS+=$(shell pkg-config glib-2.0 --libs) -lz
  13. BOTLIBS := -Wl,-rpath,.
  14. @@ -15,10 +15,10 @@ lib_objects=setters.o getters.o main.o c
  15. all: bot libquasselc.so.$(VERSION) quasselc.pc
  16. libquasselc.so.$(VERSION): $(lib_objects)
  17. - $(CC) -shared -o $@ -Wl,-soname,libquasselc.so.$(SO_VERSION) $^ $(LDLIBS)
  18. + $(CC) -shared -o $@ -Wl,-soname,libquasselc.so.$(SO_VERSION) $^ $(LDFLAGS)
  19. bot: bot.o display.o libquasselc.so.$(VERSION)
  20. - $(CC) -o $@ $^ $(LDLIBS) $(BOTLIBS)
  21. + $(CC) -o $@ $^ $(LDFLAGS) $(BOTLIBS)
  22. clean:
  23. rm -f *.o bot libquasselc.so.$(VERSION) quasselc.pc