-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (30 loc) · 1.04 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
# Makefile for cdd-061.
# Select an ANSI C compiler
CC = /usr/local/bin/gcc
#CC = /bin/cc
# Location of include files
INCLUDEDIR = .
# Compiler options
#CFLAGS = -g -O -I$(INCLUDEDIR)
#CFLAGS = -g -pg -O -I$(INCLUDEDIR)
CFLAGS = -O3 -I$(INCLUDEDIR)
########## You shouldn't have to change anything after this point ##########
cddio.o: cddio.c cdd.h cdddef.h dplex.h dplexdef.h
$(CC) $(CFLAGS) -c cddio.c
cddarith.o: cddarith.c cdd.h cdddef.h dplex.h dplexdef.h
$(CC) $(CFLAGS) -c cddarith.c
cdd.o: cdd.c cdd.h cdddef.h dplex.h dplexdef.h
$(CC) $(CFLAGS) -c cdd.c
dplex.o: dplex.c dplex.h dplexdef.h
$(CC) $(CFLAGS) -c dplex.c
dplex_test.o: dplex_test.c dplex.h dplexdef.h
$(CC) $(CFLAGS) -c dplex_test.c
setoper.o: setoper.c
$(CC) $(CFLAGS) -c setoper.c
cdd: cdd.o cddio.o cddarith.o dplex.o setoper.o
$(CC) $(CFLAGS) cdd.o cddio.o cddarith.o dplex.o setoper.o -o cdd
dplex_test: dplex.o dplex_test.o setoper.o
$(CC) $(CFLAGS) dplex.o dplex_test.o setoper.o -o dplex_test
clean:
rm -rf core a.out cdd dplex_test *.o *~
all: cdd dplex_test