# Makefile for CS437 w1 series linux # type make -f Makefile.linux to compile w1, w1gl, W1frame type files # some python works on some computers LIBX= -L/usr/X11R6/lib -lXext -lXm -lXt -lX11 -lm LIBGL= -lglut -lGL -lGLU LIBS=$(LIBX) $(LIBGL) CFLAGS= -I/usr/X11R6/include CC=gcc all: w1 w1gl java python w1: w1.c gcc -o w1 w1.c $(LIBS) # compile and link w1 # execute rm -f w1 w1gl: w1gl.c gcc -o w1gl w1gl.c $(LIBS) # compile and link w1gl # execute rm -f w1gl java: javac -cp . W1frame.java java -cp . W1frame rm -f *.class python: python w1qt.py python w1wx.py python w1tk.py