# Makefile for libwindow (Linux, Solaris, Irix, Cygwin) # ====================== # Directory where libwindow.a and ifmwindow reside # (please customize) IFMHOME = /afs/ethz.ch/users/p/peikert/pub/libwindow #IFMHOME = .. # The compiler CXX = g++ # X11 home directory X11HOME = /usr/X11R6 # include path INCLUDE = -I${IFMHOME}/include -I${X11HOME}/include # Subdirectory containing libwindow for this OS LIB = ${IFMHOME}/lib/`uname` # lib path LDFLAGS = -L${LIB} -lwindow -L${X11HOME}/lib -lX11 -lm # Compiler flags CXXFLAGS = ${INCLUDE} -Wall -O # Targets test: make window_demo ./window_demo %: %.cpp ${CXX} ${CXXFLAGS} -o $* $*.cpp ${LDFLAGS}