# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
##############################################################################
-TOP=/home/julians/microwindows/microwindows-0.89pre8/src
+TOP=$(MICROWINDOWS)
+ifeq "$(MICROWINDOWS)" ""
+TOP=/home/julians/local/microwindows/microwindows-0.89pre8/src
+endif
+
CONFIG = $(TOP)/config
WXDIR = ../..
OBJSUFF = o
# List of objects to compile
OBJS = minimal.o
-MTESTOBJS = mtest.o
all: minimal
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:
.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