blob: 06e525f47130524209206a419ce6387c4f0540fa (
plain) (
blame)
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
50
51
|
--- Makefile.orig Wed Jun 2 19:28:44 1999
+++ Makefile Fri May 24 03:57:01 2002
@@ -1,9 +1,8 @@
-CC=gcc
-CXX=g++
-CFLAGS=
-INCLUDES=-I$(QTDIR)/include
-LDFLAGS=-L$(QTDIR)/lib -lqt
+CC?=gcc
+CXX?=g++
+INCLUDES=-I$(X11BASE)/include/X11/qt1
+LDFLAGS=-L$(X11BASE)/lib -lqt1
VERSION=1.2
# For systems that don't have install, use this
@@ -28,7 +27,7 @@
INSTALL=install
INSTALL_BIN_FLAGS=-s
-INSTALL_ROOT=/usr/local
+INSTALL_ROOT=${PREFIX}
INSTALL_BIN=$(INSTALL_ROOT)/bin
INSTALL_MAN=$(INSTALL_ROOT)/man
@@ -39,19 +38,21 @@
user_input.o dollar_scroll_bar.o bet_option.o table_option.o \
insurance_window.o $(METAOBJS)
-MOC=$(QTDIR)/bin/moc
+MOC=$(X11BASE)/bin/moc1
.SUFFIXES: .cpp
.cpp.o:
- $(CXX) -c $(CFLAGS) $(INCLUDES) $<
+ $(CXX) -c $(CXXFLAGS) $(INCLUDES) $<
+
+all: blackjack
blackjack: main.o $(OBJS)
$(CXX) -o $@ $(LDFLAGS) main.o $(OBJS)
install:
- $(INSTALL) $(INSTALL_BIN_FLAGS) blackjack $(INSTALL_BIN)
- $(INSTALL) blackjack.1 $(INSTALL_MAN)/man1
+ ${BSD_INSTALL_PROGRAM} blackjack $(INSTALL_BIN)
+ ${BSD_INSTALL_MAN} blackjack.1 $(INSTALL_MAN)/man1
mblackjack.cpp: blackjack.h
$(MOC) -o mblackjack.cpp blackjack.h
|