patch-src_Makefile 789 B

1234567891011121314151617181920212223242526272829303132
  1. $OpenBSD: patch-src_Makefile,v 1.1 2009/03/24 17:01:33 naddy Exp $
  2. --- src/Makefile.orig Tue Mar 24 16:03:10 2009
  3. +++ src/Makefile Tue Mar 24 16:04:25 2009
  4. @@ -1,7 +1,7 @@
  5. CXXFLAGS += -Wall -I../include
  6. EXPAT_OBJECTS =
  7. -LDFLAGS += -lpcap
  8. +LIBS += -lpcap
  9. OS!=uname -s
  10. # Debug
  11. @@ -29,7 +29,8 @@ EXPAT_LIBDIR ?= /usr/local/lib
  12. .endif
  13. CXXFLAGS += -I$(EXPAT_INCLUDEDIR) -DWITH_EXPAT
  14. -LDFLAGS += -L$(EXPAT_LIBDIR) -lexpat
  15. +LDFLAGS += -L$(EXPAT_LIBDIR)
  16. +LIBS += -lexpat
  17. # Sources
  18. EXPAT_OBJECTS = LogEntryParser.o XmlFileParser.o
  19. @@ -43,7 +44,7 @@ OBJECTS = pflogx.o CmdLineParser.o EntriesFilter.o Log
  20. all: $(PFLOGX)
  21. $(PFLOGX): $(OBJECTS)
  22. - $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS)
  23. + $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
  24. .SUFFIXES: .cpp
  25. .cpp.o: