freebsd-ports/security/openvas-server/files/patch-openvasd-Makefile
Pav Lucistnik 528cf59431 - Fix build on 7.x (objformat removal)
- Move Makefile.common from server to libraries port
- Minor fixes

PR:		ports/124331 ports/124335-7 ports/124371
Submitted by:	Tomoyuki Sakurai <cherry@trombik.org> (maintainer)
2008-06-08 13:20:15 +00:00

141 lines
5.4 KiB
Text

--- openvasd/Makefile.orig 2008-04-27 17:49:28.000000000 +0900
+++ openvasd/Makefile 2008-04-27 17:50:41.000000000 +0900
@@ -46,105 +46,105 @@
@chmod +x cflags
openvasd : cflags $(OBJS)
- $(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) $(OBJS) -o openvasd $(LIBS)
+ $(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) $(OBJS) -o openvasd $(LIBS)
openvas-check-signature : cflags openvas-check-signature.o
- $(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) openvas-check-signature.o -o openvas-check-signature $(LIBS)
+ $(CC) $(LDFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) openvas-check-signature.o -o openvas-check-signature $(LIBS)
openvas-check-signature.o: openvas-check-signature.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c openvas-check-signature.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c openvas-check-signature.c
users.o : cflags users.c users.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c users.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c users.c
processes.o : cflags processes.c processes.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c processes.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c processes.c
rules.o : cflags rules.c rules.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c rules.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c rules.c
preferences.o : cflags preferences.c preferences.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c preferences.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c preferences.c
pluginload.o : cflags pluginload.h pluginload.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginload.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginload.c
openvasd.o : cflags openvasd.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c openvasd.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c openvasd.c
auth.o : cflags auth.c auth.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c auth.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c auth.c
attack.o : cflags attack.c attack.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c attack.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c attack.c
comm.o : cflags comm.c comm.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c comm.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c comm.c
utils.o : cflags utils.c utils.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c utils.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c utils.c
log.o : cflags log.c log.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c log.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c log.c
sighand.o : cflags sighand.c sighand.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c sighand.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c sighand.c
ntp_10.o : cflags ntp_10.c ntp_10.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c ntp_10.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c ntp_10.c
ntp_11.o : cflags ntp_11.c ntp_11.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c ntp_11.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c ntp_11.c
parser.o : cflags parser.c parser.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c parser.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c parser.c
piic.o : cflags piic.c piic.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c piic.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c piic.c
nasl_plugins.o : cflags nasl_plugins.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c nasl_plugins.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c nasl_plugins.c
nes_plugins.o : cflags nes_plugins.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c nes_plugins.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c nes_plugins.c
plugs_req.o : cflags plugs_req.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c plugs_req.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c plugs_req.c
save_tests.o : cflags save_tests.c save_tests.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c save_tests.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c save_tests.c
save_kb.o : cflags save_kb.c save_kb.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c save_kb.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c save_kb.c
detached.o : cflags detached.c detached.h
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c detached.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c detached.c
pluginlaunch.o : cflags pluginlaunch.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginlaunch.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginlaunch.c
locks.o : cflags locks.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c locks.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c locks.c
dirutils.o : cflags dirutils.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c dirutils.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c dirutils.c
plugs_hash.o : cflags plugs_hash.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c plugs_hash.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c plugs_hash.c
pluginupload.o : cflags pluginupload.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginupload.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginupload.c
pluginscheduler.o : cflags pluginscheduler.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c pluginscheduler.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c pluginscheduler.c
hosts.o : cflags hosts.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c hosts.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c hosts.c
shared_socket.o : cflags shared_socket.c
- $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) -c shared_socket.c
+ $(CC) $(CFLAGS) $(OPENVAS_INCLUDE) $(CPPFLAGS) -c shared_socket.c
clean :
rm -f *.o openvasd openvas-check-signature *~ cflags