summaryrefslogtreecommitdiff
path: root/app/xlockmore/Imakefile
blob: 67a0d55015ff996480cb9eb07866ace4b52716e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef XCOMM
#define XCOMM /**/#
#endif
XCOMM @(#)Imakefile	5.01 2001/01/26 xlockmore
XCOMM Many "ideas" taken from xscreensaver-1.34 by Jamie Zawinski.
XCOMM

VER = xlockmore
DISTVER = xlockmore-5.01

SUBDIRS = xlock modes/glx modes xmlock

XCOMM CXX=g++
XCOMM CXX=CC

MAKE_SUBDIR = for dir in $(SUBDIRS) ; do ( cd $$dir ; $(MAKE) $@ \
CC="$(CC)" CXX="$(CXX)" CCOPTIONS="$(CCOPTIONS)" CDEBUGFLAGS="$(CDEBUGFLAGS)" \
BINDIR="$(BINDIR)" XAPPLOADDIR="$(XAPPLOADDIR)") ; done

SUB_MAKEFILES = xlock/Makefile modes/glx/Makefile modes/Makefile xmlock/Makefile

all::
	@echo ""                  ; \
	echo "        ==========================================================" ; \
	echo ""                   ; \
	echo "        Did you read and edit iconfig.h? " ; \
	echo "           Otherwise it will assume a minimum configuration." ; \
	echo "        Run \"make depend\" if you can not find \"decay.xbm\"." ; \
	echo ""                   ; \
	echo "        ==========================================================" ; \
	echo ""


all:: $(SUB_MAKEFILES)
	@$(MAKE_SUBDIR)

install:: all
	@$(MAKE_SUBDIR)

install.man:: all
	@$(MAKE_SUBDIR)

install.ad:: all
	@$(MAKE_SUBDIR)

clean::
	@$(MAKE_SUBDIR)

depend::
	@$(MAKE_SUBDIR)

distclean:: clean
	@$(MAKE_SUBDIR)
	-rm -f Makefile config.status config.cache config.log config.h
	-rm -rf autom4te.cache

Makefiles:: $(SUB_MAKEFILES)

xlock/Makefile : Imakefile iconfig.h
	cd xlock  ; $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)/xlock

modes/glx/Makefile : modes/glx/Imakefile iconfig.h
	cd modes/glx ; $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)/modes/glx

modes/Makefile : modes/Imakefile iconfig.h
	cd modes  ; $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)/modes

xmlock/Makefile : xmlock/Imakefile iconfig.h
	cd xmlock  ; $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)/xmlock