##############################################################################
|
##############################################################################
|
#
|
#
|
# MW Objects Makefile
|
# MW Objects Makefile
|
#
|
#
|
# (c) Chris Johns 2000
|
# (c) Chris Johns 2000
|
#
|
#
|
##############################################################################
|
##############################################################################
|
|
|
include $(CONFIG)
|
include $(CONFIG)
|
|
|
# Do nothing for RTEMS
|
# Do nothing for RTEMS
|
ifneq ($(ARCH), RTEMS)
|
ifneq ($(ARCH), RTEMS)
|
|
|
######################## Additional Flags section ############################
|
######################## Additional Flags section ############################
|
|
|
# Directories list for header files
|
# Directories list for header files
|
INCLUDEDIRS +=
|
INCLUDEDIRS +=
|
# Defines for preprocessor
|
# Defines for preprocessor
|
DEFINES +=
|
DEFINES +=
|
|
|
# Compilation flags for C files OTHER than include directories
|
# Compilation flags for C files OTHER than include directories
|
CFLAGS +=
|
CFLAGS +=
|
# Preprocessor flags OTHER than defines
|
# Preprocessor flags OTHER than defines
|
CPPFLAGS +=
|
CPPFLAGS +=
|
# Linking flags
|
# Linking flags
|
LDFLAGS +=
|
LDFLAGS +=
|
|
|
############################# targets section ################################
|
############################# targets section ################################
|
|
|
ifeq ($(OBJFRAMEWORK), Y)
|
ifeq ($(OBJFRAMEWORK), Y)
|
|
|
# List of objects to compile
|
# List of objects to compile
|
CXOBJS = mwo-test.o
|
CXOBJS = mwo-test.o
|
|
|
all: default $(TOP)/bin/mwo-test
|
all: default $(TOP)/bin/mwo-test
|
|
|
endif
|
endif
|
|
|
######################### Makefile.rules section #############################
|
######################### Makefile.rules section #############################
|
|
|
include $(TOP)/Makefile.rules
|
include $(TOP)/Makefile.rules
|
|
|
######################## Tools targets section ###############################
|
######################## Tools targets section ###############################
|
|
|
CCMWINLIBS = -lmwobjects -lmwin -lmwinlib -lmwengine -lmwdrivers -lmwfonts -lmwimages -lm
|
CCMWINLIBS = -lmwobjects -lmwin -lmwinlib -lmwengine -lmwdrivers -lmwfonts -lmwimages -lm
|
|
|
$(TOP)/bin/mwo-test: mwo-test.o
|
$(TOP)/bin/mwo-test: mwo-test.o
|
$(CXX) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(CCMWINLIBS)
|
$(CXX) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(CCMWINLIBS)
|
|
|
|
|
endif
|
endif
|
|
|