6 # targets for lex and yacc
22 # target to create preprocessor output file from .c file (for debugging)
26 $(CC) $(USER_C_FLAGS) -E $< > $*.i
29 # main target (first) resolves to makefile.def's main target
34 # This has to be here, for dependencies
36 INCLUDES = $(VCINCS); $(LCINCS); $(GCINCS)
42 $(COMMONPREF)clobber: $(COMMONPREF)clobber_subdirs
43 $(RM) $(DIRT) $(TARGETS) obj$(BUILD_ALT_DIR)
45 $(COMMONPREF)clean: $(COMMONPREF)clean_subdirs
48 $(COMMONPREF)rmtargets: $(COMMONPREF)rmtargets_subdirs
52 # targets to build distributions
54 !IF EXIST($(DISTFILE))
58 $(COMMONPREF)distddk: $(COMMONPREF)distddk_subdirs
59 @$(INSTALL) $(INSTALLFLAGS) -F $(DIST)$(DISTDIR_DDK) $(DISTFILES_DDK)
60 @$(INSTALL) $(INSTALLFLAGS) -F $(DIST)$(DISTDIR_DDK) $(DISTFILES_DDK2)
63 $(COMMONPREF)clobber_subdirs:
67 # DIRS defined. We have to do subdirectories
69 CLOBBER_SUBDIRS=$(DIRS:.dir=.clobber)
70 CLEAN_SUBDIRS=$(DIRS:.dir=.clean)
71 RMTARGETS_SUBDIRS=$(DIRS:.dir=.rmtargets)
72 DISTDDK_SUBDIRS=$(DIRS:.dir=.distddk)
74 $(COMMONPREF)clobber_subdirs: $(CLOBBER_SUBDIRS)
76 $(COMMONPREF)clean_subdirs: $(CLEAN_SUBDIRS)
78 $(COMMONPREF)rmtargets_subdirs: $(RMTARGETS_SUBDIRS)
80 $(COMMONPREF)distddk_subdirs: $(DISTDDK_SUBDIRS)
84 @echo === clobbering $* ===
85 @$(MAKE) -nologo -f Makefile.win32 clobber
90 @echo === cleaning $* ===
91 @$(MAKE) -nologo -f Makefile.win32 clean
96 @echo === removing targets in $* ===
97 @$(MAKE) -nologo -f Makefile.win32 rmtargets
102 @echo === making DDK distribution in $* ===
103 @$(MAKE) -nologo -f Makefile.win32 distddk
107 $(COMMONPREF)clobber_subdirs $(COMMONPREF)clean_subdirs $(COMMONPREF)rmtargets_subdirs $(COMMONPREF)distddk_subdirs: