--- Makefile.orig 2016-07-26 13:20:30 UTC +++ Makefile @@ -1,8 +1,6 @@ -CC = g++ -CFLAGS = -O2 -Wall -INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include +INCDIR = -I${LOCALBASE}/include DESTDIR= /usr/X11R6 -LIBDIR = -L/usr/X11R6/lib +LIBDIR = -L${LOCALBASE}/lib # for linux LIBS = -lXpm -lX11 -lXext -lm # for Solaris @@ -19,14 +17,14 @@ OBJS = wmSolar.o \ RiseSet.o \ Vsop.o .c.o: - $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) + $(CXX) $(CXXFLAGS) -c $< -o $*.o $(INCDIR) all: wmSolar.o wmSolar wmSolar.o: wmSolar_master.xpm wmSolar_mask.xbm wmSolar: $(OBJS) - $(CC) $(CFLAGS) $(SYSTEM) -o wmSolar $^ $(INCDIR) $(LIBDIR) $(LIBS) + $(CXX) $(CXXFLAGS) -o wmSolar $^ $(INCDIR) $(LIBDIR) $(LIBS) clean: for i in $(OBJS) ; do \