summaryrefslogtreecommitdiffstats
path: root/include/Makefile
blob: 611f77a1a364cf3629d67e8b7e8a1a775e85d3d6 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# BEGIN COPYRIGHT BLOCK
# Copyright 2001 Sun Microsystems, Inc.
# Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# Makefile for netsite.h

BUILD_ROOT = ..
MODULE=netsiteInclude

include $(BUILD_ROOT)/nsdefs.mk

HDRDEST=$(OBJDIR)/include

NSPRDEST=$(HDRDEST)
NSPRHDRS= \
	prio.h \
	prlong.h \
	prtypes.h \
	prtime.h \
	prthread.h \
	prinrval.h \
	md/prcpucfg.h \
	obsolete/protypes.h

NSPRBINS=$(addprefix $(NSPRDEST)/, $(NSPRHDRS))

PREFIX=copyrght.h


NOSTDSTRIP=true
NOSTDDEPEND=true

HDRS=netsite.h version.h

BINS=$(addprefix $(HDRDEST)/,$(HDRS))

all: stuff nspr

strip:
depend:

include $(BUILD_ROOT)/nsconfig.mk

ifeq ($(NSAPI_CAPABLE), true)

stuff: $(HDRDEST) $(BINS) sub-hdrs

$(HDRDEST):
	mkdir -p $(HDRDEST)

ifeq ($(PRODUCT), "Netscape Proxy Server")
sub-hdrs:
	cd base; gmake
	cd frame; gmake
	cd libproxy; gmake
else
sub-hdrs:
	cd base; gmake
	cd frame; gmake
endif

$(HDRDEST)/%.h: %.h
	cat $(PREFIX) $< > $(HDRDEST)/$*.h

else
stuff:

endif

$(NSPRDEST): 
	mkdir -p $(NSPRDEST)

$(NSPRDEST)/md: $(NSPRDEST)
	mkdir -p $(NSPRDEST)/md

$(NSPRDEST)/obsolete: $(NSPRDEST)
	mkdir -p $(NSPRDEST)/obsolete

$(NSPRDEST)/%.h: 
	cp $(NSCP_DISTDIR)/include/nspr20/pr/$*.h $(NSPRDEST)/$*.h

nspr: $(NSPRDEST)/md $(NSPRDEST)/obsolete $(NSPRBINS)