patch-support_Makefile 722 B

12345678910111213141516171819202122232425
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- iptraf-3.0.0.orig/support/Makefile 2002-07-19 18:31:48.000000000 +0200
  3. +++ iptraf-3.0.0/support/Makefile 2011-01-21 13:47:38.508658394 +0100
  4. @@ -1,18 +1,13 @@
  5. -INCLUDEDIR = -I/usr/include/ncurses
  6. -
  7. OBJS = input.o menurt.o listbox.o winops.o labels.o \
  8. msgboxes.o txbox.o
  9. -all: libtextbox.a
  10. -
  11. libtextbox.a: $(OBJS)
  12. rm -rf libtextbox.a
  13. - ar cq libtextbox.a $(OBJS)
  14. - ranlib libtextbox.a
  15. -# gcc -shared -o libtextbox.so $(OBJS)
  16. + $(AR) cq libtextbox.a $(OBJS)
  17. + $(RANLIB) libtextbox.a
  18. %.o: %.c *.h
  19. - gcc -O2 -g -Wall -fPIC $(INCLUDEDIR) -c -o $*.o $<
  20. + $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c -o $*.o $<
  21. clean:
  22. rm -rf *.o *~ libtextbox.a libtextbox.so