2001-06-29 06:58:59 -04:00
|
|
|
##############################################################################
|
|
|
|
# Microwindows template Makefile
|
|
|
|
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
|
|
|
|
##############################################################################
|
|
|
|
|
2001-11-28 13:22:16 -05:00
|
|
|
TOP=/home/julians/microwindows/microwindows-0.89pre8/src
|
2001-06-29 06:58:59 -04:00
|
|
|
CONFIG = $(TOP)/config
|
|
|
|
WXDIR = ../..
|
|
|
|
OBJSUFF = o
|
|
|
|
SRCSUFF = cpp
|
|
|
|
WXLIB=$(WXDIR)/lib/libwx.a
|
|
|
|
AROPTIONS = ruv
|
|
|
|
RANLIB = ranlib
|
|
|
|
RM = rm -f
|
|
|
|
|
|
|
|
ZLIBLIB = $(WXDIR)/lib/libzlib.a
|
|
|
|
PNGLIB = $(WXDIR)/lib/libpng.a
|
|
|
|
JPEGLIB = $(WXDIR)/lib/libjpeg.a
|
|
|
|
TIFFLIB = $(WXDIR)/lib/libtiff.a
|
|
|
|
|
|
|
|
include $(CONFIG)
|
|
|
|
|
|
|
|
######################## Additional Flags section ############################
|
|
|
|
|
|
|
|
# Directories list for header files
|
|
|
|
INCLUDEDIRS += -I$(WXDIR)/include
|
|
|
|
# Defines for preprocessor
|
2001-07-02 09:22:19 -04:00
|
|
|
DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__ -DwxSIZE_T_IS_UINT -DWXWIN_OS_DESCRIPTION="\"MicroWindows\""
|
2001-06-29 06:58:59 -04:00
|
|
|
|
|
|
|
# Compilation flags for C files OTHER than include directories
|
|
|
|
CFLAGS +=
|
|
|
|
# Preprocessor flags OTHER than defines
|
|
|
|
CPPFLAGS +=
|
|
|
|
# Linking flags
|
|
|
|
#LDFLAGS += -lwx -L$(WXDIR)/lib
|
|
|
|
LDFLAGS += $(WXLIB)
|
|
|
|
|
|
|
|
############################# targets section ################################
|
|
|
|
|
|
|
|
# If you want to create a library with the objects files, define the name here
|
|
|
|
LIBNAME =
|
|
|
|
|
|
|
|
# If we put it below OBJS=, Makefile.rules includes .depend
|
|
|
|
# and it continually looks for .c files to satisfy .o.cpp
|
|
|
|
# dependency. What's going on there?
|
|
|
|
include $(TOP)/Makefile.rules
|
|
|
|
|
|
|
|
# List of objects to compile
|
|
|
|
OBJS = minimal.o
|
|
|
|
MTESTOBJS = mtest.o
|
|
|
|
|
|
|
|
all: minimal
|
|
|
|
|
|
|
|
######################### Makefile.rules section #############################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######################## Tools targets section ###############################
|
|
|
|
|
|
|
|
minimal: $(OBJS) $(MWINLIBS) $(WXLIB) $(TOP)/config
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(WXLIB) $(MWINLIBS) -lm
|
|
|
|
|
|
|
|
mtest: $(MTESTOBJS) $(MWINLIBS) $(TOP)/config
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(MTESTOBJS) -o $@ $(MWINLIBS)
|
|
|
|
|
|
|
|
#.SUFFIXES: .cpp .cxx .c
|
|
|
|
|
|
|
|
#.c.o:
|
|
|
|
# $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
|
|
|
|
|
|
|
|
.cxx.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
|
|
|
|
|
|
|
|
#$(COMMDIR)/appcmn.o: $(COMMDIR)/appcmn.cpp
|
|
|
|
# $(CC) -c $(CPPFLAGS) -o $@ $*.cpp
|
|
|
|
|
|
|
|
#appcmn.o: $(COMMDIR)/appcmn.cpp
|
|
|
|
# $(CC) $(CPPFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
cleanwx:
|
|
|
|
-$(RM) *.o
|
|
|
|
-$(RM) minimal
|
|
|
|
|
|
|
|
wx:
|
2001-07-04 08:40:17 -04:00
|
|
|
@pushd $(WXDIR)/src/msw; make -f makefile.mic all; popd
|
2001-07-05 09:35:53 -04:00
|
|
|
|
|
|
|
wxfull:
|
|
|
|
@pushd $(WXDIR)/src/msw; make -f makefile.mic cleanwx all; popd
|