-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
52 lines (41 loc) · 1.36 KB
/
Makefile
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 for Hilbert basis package, version 0.1 (experimental)
## Copyright (C) 1995 Dmitrii V. Pasechnik,
## RIACA, Amsterdam, The Netherlands
##
## to compile all the programs, type 'make'
## it will create files oneeq.exe and systeq.exe, respectively for
## solving one (maybe inhomogeneous) linear Diophantine equation,
## and a system of homogeneous linear Diophantine equations.
##
## for the time being, you cannot use the standard Unix C-compiler (cc)
##
## you can also create only one of those programs by typing 'make oneeq'
## (or 'make systeq', respectively)
##
## typing 'make clean' deletes the object files, whereas
## 'make allclean' deletes also *.exe files.
##
CC=gcc
CFLAGS=-O -g # -pg
EXT=.exe
all : oneeq systeq
oneeq : oneeq.o hb.o hb_uts.o hb.h
$(CC) $(CFLAGS) -o oneeq$(EXT) oneeq.o hb.o hb_uts.o
systeq : systeq.o hb.o hb_uts.o hbs.o hb.h
$(CC) $(CFLAGS) -o systeq$(EXT) systeq.o hb.o hb_uts.o hbs.o
oneeq.o : oneeq.c hb.h
$(CC) $(CFLAGS) -c oneeq.c
systeq.o : systeq.c hb.h
$(CC) $(CFLAGS) -c systeq.c
hb.o : hb.c hb.h
$(CC) $(CFLAGS) -c hb.c
hbs.o : hbs.c hb.h
$(CC) $(CFLAGS) -c hbs.c
hb_uts.o : hb_uts.c hb.h
$(CC) $(CFLAGS) -c hb_uts.c
clean :
rm oneeq.o systeq.o hb.o hbs.o hb_uts.o
allclean :
rm oneeq.o systeq.o hb.o hbs.o hb_uts.o oneeq$(EXT) systeq$(EXT)