OpenSDE Packages Database (without history before r20070)
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.

58 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../scanlogd/Makefile
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. CC = gcc
  15. LD = gcc
  16. RM = rm -f
  17. CFLAGS = -c -Wall -O2 -fomit-frame-pointer
  18. LDFLAGS = -s
  19. PCAP_H = -I/usr/include/pcap
  20. PCAP_L = -lpcap
  21. NIDS_H = -I/usr/local/include
  22. NIDS_L = -L/usr/local/lib -lnids -lnet -lpcap
  23. PROJ = scanlogd
  24. OBJS_COMMON = scanlogd.o
  25. OBJS = $(OBJS_COMMON) in_linux.o in_nids.o in_pcap.o
  26. default: libnids
  27. install: default
  28. cp -f scanlogd $(ROOT)/$(PREFIX)/sbin/
  29. linux: $(OBJS_COMMON) in_linux.o
  30. $(LD) $(LDFLAGS) $(OBJS_COMMON) in_linux.o -o scanlogd
  31. libnids: $(OBJS_COMMON) in_nids.o
  32. $(LD) $(LDFLAGS) $(OBJS_COMMON) in_nids.o $(NIDS_L) -o scanlogd
  33. libpcap: $(OBJS_COMMON) in_pcap.o
  34. $(LD) $(LDFLAGS) $(OBJS_COMMON) in_pcap.o $(PCAP_L) -o scanlogd
  35. in_pcap.o: params.h in.h
  36. $(CC) $(CFLAGS) $(PCAP_H) in_pcap.c
  37. in_nids.o: params.h in.h
  38. $(CC) $(CFLAGS) $(NIDS_H) in_nids.c
  39. scanlogd.o: params.h in.h
  40. in_linux.o: params.h in.h
  41. .c.o:
  42. $(CC) $(CFLAGS) $*.c
  43. clean:
  44. $(RM) $(PROJ) $(OBJS)