File: commonrules.win32

package info (click to toggle)
khronos-opengl-man4 1.0~svn31251-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,368 kB
  • ctags: 267
  • sloc: xml: 93,382; makefile: 730; python: 627; sh: 50; php: 4
file content (109 lines) | stat: -rw-r--r-- 2,073 bytes parent folder | download | duplicates (10)
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109


.SUFFIXES: .l .y .o

#
# targets for lex and yacc
#
.l.c:
	$(RM) $@
	$(LEX) $(LFLAGS) $<
	$(MV) lex.yy.c $@

.y.c:
	$(RM) $@
	$(YACC) $(YFLAGS) $<
	$(MV) y.tab.c $@

.o.obj:
	;

#
# target to create preprocessor output file from .c file (for debugging)
#
.c.i:
	$(RM) $@
	$(CC) $(USER_C_FLAGS) -E $< > $*.i

#
# main target (first) resolves to makefile.def's main target
#
default: all

#
# This has to be here, for dependencies
#
INCLUDES = $(VCINCS); $(LCINCS); $(GCINCS)


#
# cleaning targets
#
$(COMMONPREF)clobber: $(COMMONPREF)clobber_subdirs
	$(RM) $(DIRT) $(TARGETS) obj$(BUILD_ALT_DIR)

$(COMMONPREF)clean: $(COMMONPREF)clean_subdirs
	$(RM) $(DIRT)

$(COMMONPREF)rmtargets: $(COMMONPREF)rmtargets_subdirs
	$(RM) $(TARGETS)

#
# targets to build distributions
#
!IF EXIST($(DISTFILE))
!INCLUDE $(DISTFILE)
!ENDIF

$(COMMONPREF)distddk: $(COMMONPREF)distddk_subdirs
	@$(INSTALL) $(INSTALLFLAGS) -F $(DIST)$(DISTDIR_DDK) $(DISTFILES_DDK)
	@$(INSTALL) $(INSTALLFLAGS) -F $(DIST)$(DISTDIR_DDK) $(DISTFILES_DDK2)
	@$(ECHO) ""

$(COMMONPREF)clobber_subdirs:

!IFDEF DIRS
#
# DIRS defined.  We have to do subdirectories
#
CLOBBER_SUBDIRS=$(DIRS:.dir=.clobber)
CLEAN_SUBDIRS=$(DIRS:.dir=.clean)
RMTARGETS_SUBDIRS=$(DIRS:.dir=.rmtargets)
DISTDDK_SUBDIRS=$(DIRS:.dir=.distddk)

$(COMMONPREF)clobber_subdirs: $(CLOBBER_SUBDIRS)

$(COMMONPREF)clean_subdirs: $(CLEAN_SUBDIRS)

$(COMMONPREF)rmtargets_subdirs: $(RMTARGETS_SUBDIRS)

$(COMMONPREF)distddk_subdirs: $(DISTDDK_SUBDIRS)

$(CLOBBER_SUBDIRS):
	@cd $*
	@echo === clobbering $* ===
	@$(MAKE) -nologo -f Makefile.win32 clobber
	@cd ..

$(CLEAN_SUBDIRS):
	@cd $*
	@echo === cleaning $* ===
	@$(MAKE) -nologo -f Makefile.win32 clean
	@cd ..

$(RMTARGETS_SUBDIRS):
	@cd $*
	@echo === removing targets in $* ===
	@$(MAKE) -nologo -f Makefile.win32 rmtargets
	@cd ..

$(DISTDDK_SUBDIRS):
	@cd $*
	@echo === making DDK distribution in $* ===
	@$(MAKE) -nologo -f Makefile.win32 distddk
	@cd ..
!ELSE

$(COMMONPREF)clobber_subdirs $(COMMONPREF)clean_subdirs $(COMMONPREF)rmtargets_subdirs $(COMMONPREF)distddk_subdirs:

!ENDIF