#******************************************************************** #** Microsoft Windows ** #** Copyright(c) Microsoft Corp., 1992 - 1993 ** #******************************************************************** # # GNU MAKE VERSION OF MAKEFILE FOR THE REFERENCE IMPL # ifneq (,) This makefile requires GNU Make. endif include ../../commk.gcc LIBS=../../obj/refstg.a # the base directory where the code resides BASE_DIR=. # put flags to activate/deactive debug builds here DBG_FLAGS = -g -DDBGPROP=1 -DDBG=1 -DDEVL=1 # Put compiler specific flags in CFLAGS CFLAGS = $(DBG_FLAGS) -D_UNIX -DNEWPROPS $(ADD_CFLAGS) $(BYTE_ORDER) ifeq ($(U_OPTS),use_unicode) CFLAGS += -D_UNICODE=1 endif # CRTINC is the location of the C runtime header files CRTINC = # OSINC is the location of any operating system specific header files. # This reference implementation doesn't require any in its # unmodified form OSINC = CINC = $(CRTINC) $(OSINC) OBJDIR = obj CXXFILES = \ cpropvar.cxx\ proptest.cxx\ testdoc.cxx SOURCES= $(CXXFILES) $(HEADERS) CXX_OBJS1=$(CXXFILES:%.cxx=obj/%.o) CXX_OBJS=$(CXX_OBJS1:%.c=obj/%.o) default: "$(OBJDIR)" $(OBJDIR)/proptest #clear all the files then build clean: clobber default # make etags for source browsing tags: $(SOURCES) etags $(SOURCES) # clear all the files: clobber: -@rm -rf $(OBJDIR)/*.o $(OBJDIR)/proptest # make the directory "$(OBJDIR)": -@if [ ! -r $(OBJDIR) ]; then mkdir $(OBJDIR); fi $(OBJDIR)/proptest: $(CXX_OBJS) $(LIBS) $(CC) $(CFLAGS) -o $@ $(CXX_OBJS) $(LIBS) $(OBJDIR)/%.o: %.c $(CC) -c $(CFLAGS) $(CINC) $< -o $@ $(OBJDIR)/%.o: %.cxx $(CC) -c $(CFLAGS) $(CINC) $< -o $@ include depend.gcc