Define _XPG4_2 on Solaris
[tftp-hpa.git] / Makefile
blob3218aef19de62461ef6feb207558431e4681b4b7
1 # You can do "make SUB=blah" to make only a few, or edit here, or both
2 # You can also run make directly in the subdirs you want.
4 SUB = lib tftp tftpd
6 %.build:
7 $(MAKE) -C $(patsubst %.build, %, $@)
9 %.install:
10 $(MAKE) -C $(patsubst %.install, %, $@) install
12 %.clean:
13 $(MAKE) -C $(patsubst %.clean, %, $@) clean
15 %.distclean:
16 $(MAKE) -C $(patsubst %.distclean, %, $@) distclean
18 all: MCONFIG $(patsubst %, %.build, $(SUB))
20 install: MCONFIG $(patsubst %, %.install, $(SUB))
22 clean: $(patsubst %, %.clean, $(SUB))
24 distclean: $(patsubst %, %.distclean, $(SUB))
25 rm -f MCONFIG config.status config.log acconfig.h *~ \#*
26 rm -rf *.cache
27 find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f
29 spotless: distclean
30 rm -f configure acconfig.h.in
32 config: MCONFIG
34 release:
35 $(MAKE) configure acconfig.h.in
36 $(MAKE) distclean
38 MCONFIG: configure MCONFIG.in acconfig.h.in
39 ./configure
41 acconfig.h: MCONFIG
42 : Generated by side effect
44 acconfig.h.in: configure.in aclocal.m4
45 autoheader
46 rm -f acconfig.h
48 configure: configure.in aclocal.m4
49 autoconf
50 rm -f MCONFIG config.cache config.log acconfig.h