]> git.ipfire.org Git - people/ms/strongswan.git/blob - Makefile
(no commit message)
[people/ms/strongswan.git] / Makefile
1 # FreeS/WAN master makefile
2 # Copyright (C) 1998-2002 Henry Spencer.
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # for more details.
13 #
14 # RCSID $Id: Makefile,v 1.4 2004/11/14 21:50:59 as Exp $
15
16
17 FREESWANSRCDIR=$(shell pwd)
18 export FREESWANSRCDIR
19
20 include Makefile.inc
21
22 # directories visited by all recursion
23 SUBDIRS=lib src linux
24
25 # declaration for make's benefit
26 .PHONY: programs install clean distclean \
27 uninstall install_file_list
28
29 # programs
30
31 all: programs
32
33 programs install install_file_list clean::
34 @for d in $(SUBDIRS) ; \
35 do \
36 (cd $$d && $(MAKE) FREESWANSRCDIR=.. $@ ) || exit 1; \
37 done; \
38
39 # uninstall, as much as possible
40 uninstall:
41 $(MAKE) --no-print-directory install_file_list | egrep -v '(/ipsec.conf$$|/ipsec.d/)' | xargs rm -f
42