-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
77 lines (57 loc) · 1.82 KB
/
Makefile.in
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# This file is part of CONCORDE
#
# (c) Copyright 1995--1999 by David Applegate, Robert Bixby,
# Vasek Chvatal, and William Cook
#
# Permission is granted for academic research use. For other uses,
# contact the authors for licensing options.
#
# Use at your own risk. We make no guarantees about the
# correctness or usefulness of this code.
#
@SET_MAKE@
SHELL = @MAKESHELL@
SRCROOT = @top_srcdir@
BLDROOT = ..
CCINCDIR=$(SRCROOT)/INCLUDE
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
CFLAGS = @CFLAGS@ @CPPFLAGS@ -I$(BLDROOT)/INCLUDE -I$(CCINCDIR)
LDFLAGS = @CFLAGS@ @LDFLAGS@
LIBFLAGS = @LIBS@
RANLIB = @RANLIB@
OBJ_SUFFIX = @OBJ_SUFFIX@
o = $(OBJ_SUFFIX)
THISLIB=bigguy.@LIB_SUFFIX@
LIBSRCS=bigguy.c
ALLSRCS=bg_test.c $(LIBSRCS)
LIBS=$(BLDROOT)/UTIL/util.@LIB_SUFFIX@
all: $(THISLIB)
everything: all bg_test test
bg_test: bg_test.$o $(THISLIB) $(LIBS)
$(CC) $(LDFLAGS) -o $@ bg_test.$o $(THISLIB) $(LIBS) $(LIBFLAGS)
128bg_test: 128bg_test.$o $(THISLIB) $(LIBS)
$(CC) $(LDFLAGS) -o $@ 128bg_test.$o $(THISLIB) $(LIBS) $(LIBFLAGS)
test: bg_test
time bg_test < $(srcdir)/bigguy.tst > bigguy.ts2
cmp $(srcdir)/bigguy.tst bigguy.ts2
clean:
-rm -f *.$o $(THISLIB) bg_test@EXE_SUFFIX@ bigguy.ts2
OBJS=$(LIBSRCS:.c=.@OBJ_SUFFIX@)
$(THISLIB): $(OBJS)
$(AR) $(ARFLAGS) $(THISLIB) $(OBJS)
$(RANLIB) $(THISLIB)
.PHONY: $(BLDROOT)/concorde.@LIB_SUFFIX@
$(BLDROOT)/concorde.@LIB_SUFFIX@: $(OBJS)
$(AR) $(ARFLAGS) $(BLDROOT)/concorde.@LIB_SUFFIX@ $(OBJS)
$(RANLIB) $(BLDROOT)/concorde.@LIB_SUFFIX@
include ../INCLUDE/Makefile.common
# DO NOT DELETE THIS LINE -- make depend depends on it.
I=$(CCINCDIR)
I2=$(BLDROOT)/INCLUDE
bg_test.$o: bg_test.c $(I)/machdefs.h $(I2)/config.h $(I)/util.h \
$(I)/bigguy.h
bigguy.$o: bigguy.c $(I)/machdefs.h $(I2)/config.h $(I)/util.h \
$(I)/bigguy.h