# Generated automatically from Makefile.in by configure. # # $Id: Makefile.in,v 1.39 2000/04/02 03:45:36 ejb Exp $ # $Source: /home/ejb/source/magiccube4d/CVSroot/src/Makefile.in,v $ # $Author: ejb $ # TARGET = magiccube4d WFLAGS = -pedantic -Wall -W -Wunused DFLAGS = -O XINCS = -I/usr/X11R6/include INCLUDES = $(XINCS) CXXFLAGS = $(DFLAGS) $(WFLAGS) $(INCLUDES) CXX = c++ XLIBS = -L/usr/X11R6/lib LIBDIRS = $(XLIBS) LIBS = -lm -lXaw -lXmu -lXt -lXext -lX11 -lSM -lICE RM = rm -f OBJS= \ Preferences.o \ EventHandler.o \ History.o \ Macro.o \ MacroManager.o \ Main.o \ Math4d.o \ Polymgr.o \ Puzzlest.o \ Machine.o \ WidgetsX.o \ MachineX.o \ PostScriptWriter.o ASCII_DIST = "ChangeLog *.c *.cpp *.h *.pl MagicCube4d.dsw MagicCube4d.rc MagicCube4d.dsp environment *.txt res/MagicCube4d.rc2" BIN_DIST = "Makefile.in configure.in configure res/CURSOR1.CUR res/MagicCube4d.ico res/MagicCube4dDoc.ico res/TOOLBAR.BMP magiccube4d.spec magiccube4d.spec.in prolog.ps" CONFIGFILES = Makefile magiccube4d.spec AUTOFILES = Vec.h PSProlog.h configure $(CONFIGFILES) DOTVERSION = 2.2 VERSION = 2_2 OS = darwin SRCDIR = $(TARGET)-src-$(VERSION) BINDIR = $(TARGET)-$(OS)-bin-$(VERSION) SRCZIP = $(SRCDIR).zip SRCTGZ = $(SRCDIR).tgz BINTGZ = $(BINDIR).tgz # i386 shouldn't really be hard-coded here, but it's probably not # worth the trouble to get rpm to tell us what to call it. Besides, # people who really care will probably be happier not renaming the # rpms and can just build the rpms themselves from the tarball. This # is to rename the rpm files to be consistent with the naming # conventions used by the rest of our files and to avoid having # multiple .'s in the paths which confuses some Windows software. BEFORE_SRC_RPMNAME = magiccube4d-$(DOTVERSION)-1.src.rpm BEFORE_I386_RPMNAME = magiccube4d-$(DOTVERSION)-1.i386.rpm AFTER_SRC_RPMNAME = magiccube4d-src-$(VERSION)-1.rpm AFTER_I386_RPMNAME = magiccube4d-darwin-bin-$(VERSION)-1.rpm all: $(TARGET) static: $(TARGET).static # Support old and new-style pattern rules for maximum flexibility .SUFFIXES: .cpp .o .cpp.o: $(CXX) -c $(CXXFLAGS) $< %.o: %.cpp $(CXX) -c $(CXXFLAGS) $< $(TARGET): $(OBJS) $(CXX) -o $(TARGET) $(OBJS) $(LIBDIRS) $(LIBS) $(TARGET).static: $(OBJS) $(CXX) -static -o $(TARGET).static $(OBJS) $(LIBDIRS) $(LIBS) Vec.h: vec_h.c $(CC) -o vec_h vec_h.c ./vec_h 4 > Vec.h $(RM) vec_h PSProlog.h: prolog.ps make_prolog_cpp.pl perl make_prolog_cpp.pl TAGS: etags *.cpp *.h clean: $(RM) *~ *% core *.o vec_h TAGS $(TARGET) $(TARGET).static distclean: clean $(RM) Makefile config.status config.log config.cache $(RM) -r $(TARGET)-* # magiccube4d.spec gets removed in realclean rather than distclean # even though it is generated by running ./configure. The reason is # that it depends only upon the version, and it needs to be in the # distribution for rpm -t to work. realclean: distclean $(RM) configure Vec.h PSProlog.h magiccube4d.spec configure: configure.in autoconf # config.status is generated by running configure. No makefile # dependency exists since configure can be run with arguments selected # by the user, and it will always exist when Makefile exists. This # would only be a problem if someone built directly with Makefile.in # or manually removed some files. config.status: MagicCube.h @echo "*** rerun ./configure ***" @false magiccube4d.spec Makefile: config.status ./config.status alldists: zip tgz bindist rpm @echo "Move new rpms to current directory and run make rename-rpm" zip: $(SRCZIP) tgz: $(SRCTGZ) bindist: $(BINTGZ) rpm: $(SRCTGZ) rpm -ta $(SRCTGZ) rename-rpm: FORCE mv $(BEFORE_SRC_RPMNAME) $(AFTER_SRC_RPMNAME) mv $(BEFORE_I386_RPMNAME) $(AFTER_I386_RPMNAME) printobjs: @echo $(OBJS) $(SRCZIP): $(AUTOFILES) FORCE $(RM) $@ zip -l $@ `echo $(ASCII_DIST)` zip $@ `echo $(BIN_DIST)` $(SRCTGZ): $(AUTOFILES) FORCE $(RM) $(SRCDIR) ln -s . $(SRCDIR) @files=`echo $(ASCII_DIST) $(BIN_DIST)`; \ dirfiles=""; \ for i in $$files; do \ dirfiles="$$dirfiles $(SRCDIR)/$$i"; \ done; \ tar czvf $@ $$dirfiles rm $(SRCDIR) $(BINTGZ): $(TARGET).static rm -rf $(BINDIR) mkdir $(BINDIR) cp $(TARGET).static $(BINDIR)/$(TARGET) cp Intro.txt readme-unix.txt MagicCube4D-unix.txt $(BINDIR) strip $(BINDIR)/$(TARGET) $(RM) $(BINTGZ) tar czvf $(BINTGZ) $(BINDIR) FORCE: ; # Static dependencies EventHandler.o: EventHandler.cpp EventHandler.h History.h Machine.h Macro.h MacroManager.h MagicCube.h Polymgr.h PostScriptWriter.h Preferences.h Puzzlest.h Vec.h Widgets.h History.o: History.cpp History.h MagicCube.h Math4d.h Polymgr.h Preferences.h Vec.h Machine.o: Machine.cpp EventHandler.h Machine.h MachineX.h MagicCube.h Preferences.h Vec.h MachineX.o: MachineX.cpp BitmapsX.h EventHandler.h Machine.h MachineX.h MagicCube.h Preferences.h Puzzlest.h Vec.h Widgets.h WidgetsX.h Macro.o: Macro.cpp History.h Macro.h MagicCube.h Math4d.h Polymgr.h Preferences.h Vec.h MacroManager.o: MacroManager.cpp History.h Macro.h MacroManager.h MagicCube.h Math4d.h Polymgr.h Preferences.h Vec.h Main.o: Main.cpp EventHandler.h MagicCube.h Preferences.h Vec.h Math4d.o: Math4d.cpp MagicCube.h Math4d.h Vec.h Polymgr.o: Polymgr.cpp MagicCube.h Math4d.h Polymgr.h Preferences.h Vec.h PostScriptWriter.o: PostScriptWriter.cpp MagicCube.h PSProlog.h PostScriptWriter.h Puzzlest.h Vec.h Preferences.o: Preferences.cpp MagicCube.h Preferences.h Vec.h Puzzlest.o: Puzzlest.cpp MagicCube.h Math4d.h Polymgr.h Preferences.h Puzzlest.h Vec.h WidgetsX.o: WidgetsX.cpp EventHandler.h MagicCube.h Preferences.h Vec.h Widgets.h WidgetsX.h