~paul-mccullagh/perconatools/tpcc-fix-mac-build

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Vadim Tkachenko
  • Date: 2008-12-04 02:50:59 UTC
  • Revision ID: vadim@percona.com-20081204025059-7qdugxws565smubk
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# "make all" to build necessary executables.
 
3
#
 
4
 
 
5
 
 
6
 
 
7
LIBS=           `mysql_config --libs_r`
 
8
 
 
9
INC=            -I. `mysql_config --include`
 
10
 
 
11
#DEFS=          -DDEBUG
 
12
 
 
13
CFLAGS=         -w -O2 -g
 
14
 
 
15
TRANSACTIONS=   neword.o payment.o ordstat.o delivery.o slev.o
 
16
OBJS=           main.o spt_proc.o driver.o support.o sequence.o rthist.o $(TRANSACTIONS)
 
17
 
 
18
.SUFFIXES:
 
19
.SUFFIXES: .o .c
 
20
 
 
21
.c.o:
 
22
        $(CC) $(CFLAGS) $(INC) $(DEFS) -c $*.c
 
23
 
 
24
all: ../tpcc_load ../tpcc_start
 
25
 
 
26
../tpcc_load : load.o support.o
 
27
        $(CC) load.o support.o $(LIBS) -o ../tpcc_load
 
28
 
 
29
../tpcc_start : $(OBJS)
 
30
        $(CC) $(OBJS) $(LIBS) -o ../tpcc_start
 
31
 
 
32
clean :
 
33
        rm -f *.o