-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
57 lines (48 loc) · 925 Bytes
/
Makefile
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
# $Source: /usr1/mfg/3.4C/solaris_bld/group/util/makefiles/RCS/dir.mk,v $
#
# $Author: wanda $
# $Revision: #3 $
# $Date: 2004/09/29 $
# $State: Exp $
#
.PHONY: all
all: install release
BUILD_ORDER = \
lef \
clef \
clefzlib \
lefzlib \
lefrw \
lefwrite \
lefdiff
## HP-UX 9.0.X
OS_TYPE := $(shell uname)
ifeq ($(OS_TYPE),HP-UX)
OPTIMIZE_FLAG = +O2
else
OS_VER := $(shell uname -r)
ifeq ($(findstring 4.1,$(OS_VER)),4.1)
OPTIMIZE_FLAG = -O
else
OPTIMIZE_FLAG = -O
endif
endif
install:
@$(MAKE) $(MFLAGS) installhdrs installlib installbin
release:
@$(MAKE) "DEBUG=$(OPTIMIZE_FLAG)" install
test:
@$(MAKE) "BUILD_ORDER=TEST" dotest
.PHONY: clean
clean:
@$(MAKE) "BUILD_ORDER += TEST" doclean;
echo $(BUILD_ORDER);
@$(MAKE) doclean;
.DEFAULT:
@for i in $(BUILD_ORDER) ;do \
echo $(MAKE) $@ in $$i ; \
cd $$i ; \
$(MAKE) $(MFLAGS) $@ || exit ; \
cd .. ; \
done
.DELETE_ON_ERROR: