home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Makefiles / pb_makefiles / app.make < prev    next >
Text File  |  1996-12-05  |  2KB  |  57 lines

  1. #
  2. # app.make
  3. #
  4. # Variable definitions and rules for building application projects.  An
  5. # application is a directory which contains an executable and any resources
  6. # that executable requires.  See wrapped.make for more information about
  7. # projects whose product is a directory.
  8. #
  9. # PUBLIC TARGETS
  10. #    app: synonymous with all
  11. #
  12. # IMPORTED VARIABLES
  13. #    APP_WRAPPER_EXTENSION:  the extension for the app wrapper.  Defaults to ".app"
  14. #
  15. # EXPORTED VARIABLES
  16. #    none
  17. #
  18.  
  19. .PHONY: app all
  20. app: all
  21. PROJTYPE = APP
  22.  
  23. ifeq "" "$(APP_WRAPPER_EXTENSION)"
  24. APP_WRAPPER_EXTENSION = .app
  25. endif
  26.  
  27. PRODUCT = $(PRODUCT_DIR)/$(NAME)$(APP_WRAPPER_EXTENSION)
  28. PRODUCTS = $(PRODUCT)
  29. PROJTYPE_GARBAGE = $(PRODUCT_DIR)/$(NAME).debug $(PRODUCT_DIR)/$(NAME).profile
  30. INNER_PRODUCT = $(PRODUCT)/$(NAME)$(EXECUTABLE_EXT)
  31. STRIPPED_PRODUCTS = $(INNER_PRODUCT)
  32.  
  33. ifeq "WINDOWS" "$(OS)"
  34. REG_FILE = appResources.reg
  35. RESOURCE_OFILE = appResources.o
  36. PROJTYPE_LDFLAGS = -win
  37. PROJTYPE_OFILES = $(RESOURCE_OFILE)
  38. PROJTYPE_LIBS = $(NEXT_ROOT)/NextDeveloper/Libraries/libNSWinMain.a
  39. endif
  40. ifeq "NEXTSTEP" "$(OS)"
  41. PROJTYPE_LDFLAGS = -sectcreate __ICON __header $(NAME).iconheader -segprot __ICON r r $(ICONSECTIONS)
  42. endif
  43.  
  44. include $(MAKEFILEDIR)/wrapped-common.make
  45. -include $(LOCAL_MAKEFILEDIR)/app.make.preamble
  46.  
  47. IMPLICIT_SOURCE_FILES += $(NAME).iconheader
  48.  
  49. $(PRODUCT): $(INNER_PRODUCT)
  50.  
  51. $(INNER_PRODUCT): $(DEPENDENCIES)
  52.     $(SILENT) $(MKDIRS) $(PRODUCT)
  53.     $(CC) $(ALL_LDFLAGS) $(ARCHITECTURE_FLAGS) -o $(INNER_PRODUCT) $(LOADABLES)
  54.  
  55. -include $(LOCAL_MAKEFILEDIR)/app.make.postamble
  56.  
  57.