File: Makefile

package info (click to toggle)
p2c 1.21alpha2-1
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 1,996 kB
  • ctags: 3,399
  • sloc: ansic: 38,617; pascal: 2,499; makefile: 213; perl: 101
file content (59 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (2)
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

# Examples for "p2c", the Pascal to C translator.


# The following definitions assume p2c has been compiled into the "home"
# directory as shown in src/Makefile.
P2C = ../p2c
INC = ../home
LIB = ../home/libp2c.a


default: comp


# Translating everything:

trans:  fact.c  e.c  self.c  cref.c  basic.c

fact.c: fact.p
	$(P2C) fact.p

e.c: e.p
	$(P2C) e.p

self.c: self.p
	$(P2C) self.p

cref.c: cref.p
	$(P2C) cref.p

basic.c: basic.p
	$(P2C) basic.p



# Compiling everything:

comp:  fact  e  self  cref  basic

fact: fact.c
	$(CC) -I$(INC) fact.c $(LIB) -o fact

e: e.c
	$(CC) -I$(INC) e.c $(LIB) -o e

self: self.c
	$(CC) -I$(INC) self.c $(LIB) -o self

cref: cref.c
	$(CC) -I$(INC) cref.c $(LIB) -o cref

basic: basic.c
	$(CC) -I$(INC) basic.c $(LIB) -lm -o basic