blob: 27bb15739adca51b358ff9834abb79ab84e372fb (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- Makefile.orig Wed Apr 28 08:17:54 1999
+++ Makefile Sun Sep 8 17:58:29 2002
@@ -1,31 +1,34 @@
-I = -I/usr/openwin/include -I/usr/local/include
+I = -I${LOCALBASE}/include
#L = -Bstatic -lXpm -Bdynamic -lX11 -lXext
-L = -L/usr/local/lib -L/usr/openwin/lib -L/usr/X11/lib -lXpm -lX11 -lXext
+L = -L${LOCALBASE}/lib -L/usr/lib -lXpm -lX11 -lXext
#CC = gcc -O $I -DXLIB_ILLEGAL_ACCESS
-CC=CC -O $I -DXLIB_ILLEGAL_ACCESS
+CXX ?= c++
+CXXFLAGS= ${COPT} $I -DXLIB_ILLEGAL_ACCESS
+CC ?= cc
+CFLAGS+= $I -DXLIB_ILLEGAL_ACCESS
-cyrx2: cyrx2.o cyrmapper.o
- $(CC) cyrx2.o cyrmapper.o -o cyrx2 $L
+all: cyrx2.o cyrmapper.o
+ $(CXX) $(CXXFLAGS) cyrx2.o cyrmapper.o -o cyrx2 $L
cyrx: cyrx.o cyrmapper.o
- $(CC) -xildoff cyrx.o cyrmapper.o -o cyrx $L
+ $(CXX) $(CXXFLAGS) -xildoff cyrx.o cyrmapper.o -o cyrx $L
cyrx2.o: cyrx2.cc
- $(CC) cyrx2.cc -c -o cyrx2.o
+ $(CXX) $(CXXFLAGS) cyrx2.cc -c -o cyrx2.o
cyrx.o: cyrx.cc cyrmapper.h cyrl.h cyrx.icon cright.icon
- $(CC) cyrx.cc -c -o cyrx.o
+ $(CXX) $(CXXFLAGS) cyrx.cc -c -o cyrx.o
cyrmapper.o: cyrmapper.cc cyrmapper.h
- $(CC) cyrmapper.cc -c -o cyrmapper.o
+ $(CXX) $(CXXFLAGS) cyrmapper.cc -c -o cyrmapper.o
test: test.cc
- $(CC) test.cc -o test -lg++
+ $(CXX) $(CXXFLAGS) test.cc -o test -lg++
-test: gen.c
- $(CC) gen.c -o gen
+gen: gen.c
+ $(CC) $(CFLAGS) gen.c -o gen
tabs:
|