1 ##############################################################################
2 # Microwindows template Makefile
3 # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4 ##############################################################################
8 ######################## Additional Flags section ############################
10 # Directories list for header files
12 # Defines for preprocessor
15 # Compilation flags for C files OTHER than include directories
17 # Preprocessor flags OTHER than defines
22 ############################# targets section ################################
25 ifeq ($(MICROWINDEMO), Y)
27 # If you want to create a library with the objects files, define the name here
30 # List of objects to compile
31 OBJS = mdemo.o mterm.o malpha.o mtest.o mine.o mtest2.o
32 MINEIMAGES = mineflag.o mineface.o minefacelost.o minebomb.o minedone.o\
35 DEMOS = $(TOP)/bin/mdemo\
43 DEMOS += $(TOP)/bin/muserfd
51 ######################### Makefile.rules section #############################
53 include $(TOP)/Makefile.rules
55 ######################## Tools targets section ###############################
57 $(TOP)/bin/mdemo: mdemo.o $(MWINLIBS) $(TOP)/config
58 $(CC) $(CFLAGS) $(LDFLAGS) mdemo.o -o $@ $(CCMWINLIBS)
60 $(TOP)/bin/mterm: mterm.o $(MWINLIBS) $(TOP)/config
61 $(CC) $(CFLAGS) $(LDFLAGS) mterm.o -o $@ $(CCMWINLIBS)
63 $(TOP)/bin/malpha: malpha.o $(MWINLIBS) $(TOP)/config
64 $(CC) $(CFLAGS) $(LDFLAGS) malpha.o -o $@ $(CCMWINLIBS)
66 $(TOP)/bin/mtest: mtest.o $(MWINLIBS) $(TOP)/config
67 $(CC) $(CFLAGS) $(LDFLAGS) mtest.o -o $@ $(CCMWINLIBS)
69 $(TOP)/bin/mtest2: mtest2.o $(MWINLIBS) $(TOP)/config
70 $(CC) $(CFLAGS) $(LDFLAGS) mtest2.o -o $@ $(CCMWINLIBS)
72 $(TOP)/bin/mine: mine.o $(MINEIMAGES) $(MWINLIBS) $(TOP)/config
73 $(CC) $(CFLAGS) $(LDFLAGS) mine.o $(MINEIMAGES) -o $@ $(CCMWINLIBS)
75 $(TOP)/bin/muserfd: muserfd.o $(MWINLIBS) $(TOP)/config
76 $(CC) $(CFLAGS) $(LDFLAGS) muserfd.o -o $@ $(CCMWINLIBS)