blob: 872ea28528bb0143bfea758a1865a6e684e24643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- 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 \
|