Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
1.3 KiB

###
### Unix version of the Makefile
### This should work with at least GCC
###
include ../../commk.gcc
# directory of source files
BUILDTOP=.
OBJDIR=obj
# Some flags here
INCLUDES=
DBG_FLAGS= -g -DDBG=1 -DDEVL=1
CFLAGS=$(DBG_FLAGS) $(INCLUDES) $(BYTE_ORDER) -D_UNIX -D_REF
ifeq ($(U_OPTS),use_unicode)
CFLAGS += -D_UNICODE=1
endif
# Source files
CXXS= $(BUILDTOP)/drt.cxx\
$(BUILDTOP)/headers.cxx\
$(BUILDTOP)/ilb.cxx\
$(BUILDTOP)/illeg.cxx\
$(BUILDTOP)/strlist.cxx\
$(BUILDTOP)/tests.cxx\
$(BUILDTOP)/util.cxx\
$(BUILDTOP)/wrap.cxx\
HEADERS= drt.hxx\
ilb.hxx\
illeg.hxx \
strlist.hxx\
tests.hxx\
util.hxx\
wrap.hxx
SRCS= $(CXXS) $(HEADERS)
OBJS=$(CXXS:$(BUILDTOP)/%.cxx=$(OBJDIR)/%.o)
TAGSFILE=TAGS
#put subdirectories here
SUBDIRS=
TARGET=$(OBJDIR)/stgdrt
LIBS=../../obj/refstg.a
all:: "$(OBJDIR)" $(TARGET)
clean:: clobber all
clobber::
$(RM) $(TAGSFILE)
$(RM) $(OBJS)
$(RM) $(TARGET)
# make the directory
"$(OBJDIR)"::
-@if [ ! -r $(OBJDIR) ]; then mkdir $(OBJDIR); fi
$(OBJDIR)/stgdrt:: $(OBJS) $(LIBS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
$(TAGSFILE)::
etags $(SRCS) -o $(TAGSFILE)
obj/drt.o : ./drt.cxx
$(CC) -c $(CFLAGS) $(INC) $< -o $@
$(OBJDIR)/%.o:: $(BUILDTOP)/%.cxx
$(CC) -c $(CFLAGS) $(INC) $< -o $@
include depend.gcc