Browse Source
			
			
			
			
				
		hardcoding it and overwriting the Makefile * removed hardcoded CFLAGS/LDFLAGS from original Makefile git-svn-id: svn://svn.opensde.net/opensde/package/trunk@22018 10447126-35f2-4685-b0cf-6dd780d3921fearly
				 3 changed files with 64 additions and 64 deletions
			
			
		| @ -1,58 +0,0 @@ | ||||
| # --- T2-COPYRIGHT-NOTE-BEGIN ---
 | ||||
| # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 | ||||
| # 
 | ||||
| # T2 SDE: package/.../scanlogd/Makefile
 | ||||
| # Copyright (C) 2004 - 2006 The T2 SDE Project
 | ||||
| # 
 | ||||
| # More information can be found in the files COPYING and README.
 | ||||
| # 
 | ||||
| # This program is free software; you can redistribute it and/or modify
 | ||||
| # it under the terms of the GNU General Public License as published by
 | ||||
| # the Free Software Foundation; version 2 of the License. A copy of the
 | ||||
| # GNU General Public License can be found in the file COPYING.
 | ||||
| # --- T2-COPYRIGHT-NOTE-END ---
 | ||||
| CC = gcc
 | ||||
| LD = gcc
 | ||||
| RM = rm -f
 | ||||
| CFLAGS = -c -Wall -O2 -fomit-frame-pointer
 | ||||
| LDFLAGS = -s
 | ||||
| 
 | ||||
| PCAP_H = -I/usr/include/pcap
 | ||||
| PCAP_L = -lpcap
 | ||||
| 
 | ||||
| NIDS_H = -I/usr/local/include
 | ||||
| NIDS_L = -L/usr/local/lib -lnids -lnet -lpcap
 | ||||
| 
 | ||||
| PROJ = scanlogd
 | ||||
| 
 | ||||
| OBJS_COMMON = scanlogd.o
 | ||||
| OBJS = $(OBJS_COMMON) in_linux.o in_nids.o in_pcap.o
 | ||||
| 
 | ||||
| default: libnids | ||||
| 
 | ||||
| install: default | ||||
| 	cp -f scanlogd $(ROOT)/$(PREFIX)/sbin/
 | ||||
| 
 | ||||
| linux: $(OBJS_COMMON) in_linux.o | ||||
| 	$(LD) $(LDFLAGS) $(OBJS_COMMON) in_linux.o -o scanlogd
 | ||||
| 
 | ||||
| libnids: $(OBJS_COMMON) in_nids.o | ||||
| 	$(LD) $(LDFLAGS) $(OBJS_COMMON) in_nids.o $(NIDS_L) -o scanlogd
 | ||||
| 
 | ||||
| libpcap: $(OBJS_COMMON) in_pcap.o | ||||
| 	$(LD) $(LDFLAGS) $(OBJS_COMMON) in_pcap.o $(PCAP_L) -o scanlogd
 | ||||
| 
 | ||||
| in_pcap.o: params.h in.h | ||||
| 	$(CC) $(CFLAGS) $(PCAP_H) in_pcap.c
 | ||||
| 
 | ||||
| in_nids.o: params.h in.h | ||||
| 	$(CC) $(CFLAGS) $(NIDS_H) in_nids.c
 | ||||
| 
 | ||||
| scanlogd.o: params.h in.h | ||||
| in_linux.o: params.h in.h | ||||
| 
 | ||||
| .c.o: | ||||
| 	$(CC) $(CFLAGS) $*.c
 | ||||
| 
 | ||||
| clean: | ||||
| 	$(RM) $(PROJ) $(OBJS)
 | ||||
| @ -0,0 +1,27 @@ | ||||
| # --- SDE-COPYRIGHT-NOTE-BEGIN ---
 | ||||
| # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 | ||||
| # 
 | ||||
| # Filename: package/.../scanlogd/makefile.patch
 | ||||
| # Copyright (C) 2007 The OpenSDE Project
 | ||||
| # 
 | ||||
| # More information can be found in the files COPYING and README.
 | ||||
| # 
 | ||||
| # This patch file is dual-licensed. It is available under the license the
 | ||||
| # patched project is licensed under, as long as it is an OpenSource license
 | ||||
| # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
 | ||||
| # of the GNU General Public License as published by the Free Software
 | ||||
| # Foundation; either version 2 of the License, or (at your option) any later
 | ||||
| # version.
 | ||||
| # --- SDE-COPYRIGHT-NOTE-END ---
 | ||||
| 
 | ||||
| --- ./Makefile.orig	2006-03-05 11:03:15.000000000 +0100
 | ||||
| +++ ./Makefile	2007-08-08 15:18:50.000000000 +0200
 | ||||
| @@ -1,8 +1,6 @@
 | ||||
|  CC = gcc
 | ||||
|  LD = $(CC)
 | ||||
|  RM = rm -f
 | ||||
| -CFLAGS = -Wall -O2 -fomit-frame-pointer
 | ||||
| -LDFLAGS = -s
 | ||||
|  
 | ||||
|  PCAP_H = -I/usr/include/pcap
 | ||||
|  PCAP_L = -lpcap
 | ||||
					Loading…
					
					
				
		Reference in new issue