# # The Rubik's cube. # # Sed - april 1999 / december 2003. # # This program is in the public domain. #-------------------- # The Makefile # # Customize to fit your needs (especially if it does not work for now). LANGUAGE=ENGLISH GAMESDIR=/usr/games #architecture=-DPC_ARCHI # For Solaris #EXTRALIBS=-lsocket CC=gcc CFLAGS=-Wall -O3 -fomit-frame-pointer -ffast-math \ -DGAMESDIR="\"$(GAMESDIR)\"" \ -D$(LANGUAGE) $(architecture) #CFLAGS=-Wall -g -ffast-math -Iplayer $(architecture) XINC=-I/usr/X11R6/include XLIB=-L/usr/X11R6/lib -lX11 #the following should not be changed. OBJ=cube.o event.o fillpoly.o line.o main.o screen.o rubix : $(OBJ) $(CC) $(CFLAGS) -o $@ $^ -lm $(XLIB) $(EXTRALIBS) # strip rubix install : mkdir -p $(GAMESDIR) install -c -s rubix $(GAMESDIR) clean : rm -f *.o *~ core *.bak *.dat gmon.out rm -f rubix rubix.bin rubix.num rubix.gen rubix.pos dep : makedepend -Y *.c -s"#I like the GNU tools" %.o : %.c $(CC) $(CFLAGS) $(XINC) -c -o $@ $< #I like the GNU tools cube.o: cube.h screen.h fillpoly.h poly.h device.h line.h event.o: event.h screen.h cube.h fillpoly.o: device.h poly.h line.o: line.h device.h poly.h screen.h cube.h main.o: messages.h screen.h cube.h event.h device.h version.h screen.o: screen.h cube.h device.h