# This Makefile is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. CPP = @CPP@ CC = @CC@ AWK = @AWK@ CXXCPP = @CXXCPP@ CXX = @CXX@ LIBS = ../../mysnprintf.o ../lib/libswt.a @LIBS@ INCDIRS = -I../include # WARNINGS = -Wall -Wwrite-strings CFLAGS = -g $(WARNINGS) $(INCDIRS) -I. CXXFLAGS = $(CFLAGS) TARGETS = swTest text buttons doodle drawing tree restest draw1 OBJSCXX= \ Dialog2.o \ Keyboard.o \ ElevationGridDialog2.o \ restest.o .SUFFIXES: .cpp .cpp.o: $(CXX) -g $(INCDIRS) $(CXXFLAGS) -c $< SRCS= $(OBJS:o=c) $(OBJSCXX:o=cpp) DISTFILES= $(SRCS) Makefile.in res.rc bitmap1.bmp resource.h targets: $(TARGETS) resource.c: res.rc bitmap1.bmp sed 's.\\\\./.' < res.rc > res.rc.c $(CXXCPP) res.rc.c | grep -v '//' | ../rc/rc > resource.c rm res.rc.c restest: restest.o resource.o Dialog2.o Keyboard.o ElevationGridDialog2.o ../lib/libswt.a $(CC) restest.o Dialog2.o Keyboard.o ElevationGridDialog2.o resource.o $(LIBS) -o restest clean: rm -f $(OBJSCXX) resource.c resource.o restest realclean: clean cp Makefile Makefile.bak awk '{ print } /^# DO NOT DELETE THIS LINE/ { print ""; exit }' < Makefile.bak > Makefile clobber: rm -f $(TARGETS) dname: $(DISTFILES) mkdir ../../`cat ../../.dname`/swt/tests ln $(DISTFILES) ../../`cat ../../.dname`/swt/tests depend: cp Makefile Makefile.bak $(AWK) "{ print; } /^# DO NOT DELETE/ { exit; }" < Makefile.bak > Makefile gcc -MM $(INCDIRS) $(SRCS) >> Makefile # DO NOT DELETE this line -- it's make depend food