##############################################################################
|
##############################################################################
|
# Microwindows template Makefile
|
# Microwindows template Makefile
|
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
|
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
|
##############################################################################
|
##############################################################################
|
|
|
include $(CONFIG)
|
include $(CONFIG)
|
|
|
######################## 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 ($(MICROWIN), Y)
|
ifeq ($(MICROWIN), Y)
|
ifeq ($(MICROWINDEMO), Y)
|
ifeq ($(MICROWINDEMO), Y)
|
|
|
# If you want to create a library with the objects files, define the name here
|
# If you want to create a library with the objects files, define the name here
|
LIBNAME =
|
LIBNAME =
|
|
|
# List of objects to compile
|
# List of objects to compile
|
OBJS = mdemo.o mterm.o malpha.o mtest.o mine.o mtest2.o
|
OBJS = mdemo.o mterm.o malpha.o mtest.o mine.o mtest2.o
|
MINEIMAGES = mineflag.o mineface.o minefacelost.o minebomb.o minedone.o\
|
MINEIMAGES = mineflag.o mineface.o minefacelost.o minebomb.o minedone.o\
|
minehitfalse.o
|
minehitfalse.o
|
|
|
DEMOS = $(TOP)/bin/mdemo\
|
DEMOS = $(TOP)/bin/mdemo\
|
$(TOP)/bin/mterm\
|
$(TOP)/bin/mterm\
|
$(TOP)/bin/malpha\
|
$(TOP)/bin/malpha\
|
$(TOP)/bin/mtest\
|
$(TOP)/bin/mtest\
|
$(TOP)/bin/mtest2\
|
$(TOP)/bin/mtest2\
|
$(TOP)/bin/mine
|
$(TOP)/bin/mine
|
|
|
ifneq ($(ARCH), ELKS)
|
ifneq ($(ARCH), ELKS)
|
DEMOS += $(TOP)/bin/muserfd
|
DEMOS += $(TOP)/bin/muserfd
|
endif
|
endif
|
|
|
all: default $(DEMOS)
|
all: default $(DEMOS)
|
|
|
endif
|
endif
|
endif
|
endif
|
|
|
######################### Makefile.rules section #############################
|
######################### Makefile.rules section #############################
|
|
|
include $(TOP)/Makefile.rules
|
include $(TOP)/Makefile.rules
|
|
|
######################## Tools targets section ###############################
|
######################## Tools targets section ###############################
|
|
|
$(TOP)/bin/mdemo: mdemo.o $(MWINLIBS) $(TOP)/config
|
$(TOP)/bin/mdemo: mdemo.o $(MWINLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) mdemo.o -o $@ $(CCMWINLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) mdemo.o -o $@ $(CCMWINLIBS)
|
|
|
$(TOP)/bin/mterm: mterm.o $(MWINLIBS) $(TOP)/config
|
$(TOP)/bin/mterm: mterm.o $(MWINLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) mterm.o -o $@ $(CCMWINLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) mterm.o -o $@ $(CCMWINLIBS)
|
|
|
$(TOP)/bin/malpha: malpha.o $(MWINLIBS) $(TOP)/config
|
$(TOP)/bin/malpha: malpha.o $(MWINLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) malpha.o -o $@ $(CCMWINLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) malpha.o -o $@ $(CCMWINLIBS)
|
|
|
$(TOP)/bin/mtest: mtest.o $(MWINLIBS) $(TOP)/config
|
$(TOP)/bin/mtest: mtest.o $(MWINLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) mtest.o -o $@ $(CCMWINLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) mtest.o -o $@ $(CCMWINLIBS)
|
|
|
$(TOP)/bin/mtest2: mtest2.o $(MWINLIBS) $(TOP)/config
|
$(TOP)/bin/mtest2: mtest2.o $(MWINLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) mtest2.o -o $@ $(CCMWINLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) mtest2.o -o $@ $(CCMWINLIBS)
|
|
|
$(TOP)/bin/mine: mine.o $(MINEIMAGES) $(MWINLIBS) $(TOP)/config
|
$(TOP)/bin/mine: mine.o $(MINEIMAGES) $(MWINLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) mine.o $(MINEIMAGES) -o $@ $(CCMWINLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) mine.o $(MINEIMAGES) -o $@ $(CCMWINLIBS)
|
|
|
$(TOP)/bin/muserfd: muserfd.o $(MWINLIBS) $(TOP)/config
|
$(TOP)/bin/muserfd: muserfd.o $(MWINLIBS) $(TOP)/config
|
$(CC) $(CFLAGS) $(LDFLAGS) muserfd.o -o $@ $(CCMWINLIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) muserfd.o -o $@ $(CCMWINLIBS)
|
|
|
|
|