5ca9a6aed0
Submitted by: rafan Tested on: pointyhat
51 lines
1.1 KiB
Text
51 lines
1.1 KiB
Text
--- Makefile.orig Thu Jun 3 04:28:44 1999
|
|
+++ Makefile Sun Feb 2 01:46:29 2003
|
|
@@ -1,9 +1,8 @@
|
|
|
|
-CC=gcc
|
|
-CXX=g++
|
|
-CFLAGS=
|
|
-INCLUDES=-I$(QTDIR)/include
|
|
-LDFLAGS=-L$(QTDIR)/lib -lqt
|
|
+CC?=gcc
|
|
+CXX?=g++
|
|
+INCLUDES=${QTCPPFLAGS}
|
|
+LDFLAGS=${QTCFGLIBS} -lqt-mt
|
|
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=$(QTDIR)/bin/moc
|
|
|
|
.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
|