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

  1. ###
  2. ### Unix version of the Makefile
  3. ### This should work with at least GCC
  4. ###
  5. include ../../commk.gcc
  6. # directory of source files
  7. BUILDTOP=.
  8. OBJDIR=obj
  9. # Some flags here
  10. INCLUDES=
  11. DBG_FLAGS= -g -DDBG=1 -DDEVL=1
  12. CFLAGS=$(DBG_FLAGS) $(INCLUDES) $(BYTE_ORDER) -D_UNIX -D_REF
  13. ifeq ($(U_OPTS),use_unicode)
  14. CFLAGS += -D_UNICODE=1
  15. endif
  16. # Source files
  17. CXXS= $(BUILDTOP)/drt.cxx\
  18. $(BUILDTOP)/headers.cxx\
  19. $(BUILDTOP)/ilb.cxx\
  20. $(BUILDTOP)/illeg.cxx\
  21. $(BUILDTOP)/strlist.cxx\
  22. $(BUILDTOP)/tests.cxx\
  23. $(BUILDTOP)/util.cxx\
  24. $(BUILDTOP)/wrap.cxx\
  25. HEADERS= drt.hxx\
  26. ilb.hxx\
  27. illeg.hxx \
  28. strlist.hxx\
  29. tests.hxx\
  30. util.hxx\
  31. wrap.hxx
  32. SRCS= $(CXXS) $(HEADERS)
  33. OBJS=$(CXXS:$(BUILDTOP)/%.cxx=$(OBJDIR)/%.o)
  34. TAGSFILE=TAGS
  35. #put subdirectories here
  36. SUBDIRS=
  37. TARGET=$(OBJDIR)/stgdrt
  38. LIBS=../../obj/refstg.a
  39. all:: "$(OBJDIR)" $(TARGET)
  40. clean:: clobber all
  41. clobber::
  42. $(RM) $(TAGSFILE)
  43. $(RM) $(OBJS)
  44. $(RM) $(TARGET)
  45. # make the directory
  46. "$(OBJDIR)"::
  47. -@if [ ! -r $(OBJDIR) ]; then mkdir $(OBJDIR); fi
  48. $(OBJDIR)/stgdrt:: $(OBJS) $(LIBS)
  49. $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
  50. $(TAGSFILE)::
  51. etags $(SRCS) -o $(TAGSFILE)
  52. obj/drt.o : ./drt.cxx
  53. $(CC) -c $(CFLAGS) $(INC) $< -o $@
  54. $(OBJDIR)/%.o:: $(BUILDTOP)/%.cxx
  55. $(CC) -c $(CFLAGS) $(INC) $< -o $@
  56. include depend.gcc