-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathReleaseMakefile
43 lines (30 loc) · 994 Bytes
/
ReleaseMakefile
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
# Makefile for a Release
# $Header$
# Author: (c) Christian Maeder, Uni Bremen 2002-2004
# Year: 2004
# This Makefile will compile the hets sources
# note that you'll need the "uni" library residing in ".."
# from http://www.informatik.uni-bremen.de/~ger/cvs/CVS.html
####################################################################
## Some varibles, which control the compilation
INCLUDE_PATH = ghc:hetcats
HC = ghc
HC_INCLUDE = -i$(INCLUDE_PATH)
# you need the "uni" library!
HC_PACKAGE = -package-conf ../uni/uni-package.conf -package uni-davinci \
-package uni-server
HC_OPTS = $(HC_PACKAGE) $(HC_INCLUDE)
####################################################################
### targets
all: hets-optimized
hets-optimized:
$(HC) --make -O -o hets hets.hs $(HC_OPTS) -w
strip hets
###############
### clean up
### remove binary
bin_clean:
$(RM) hets
### remove *.hi and *.o
clean: bin_clean
find . -name \*.o -o -name \*.hi | xargs $(RM) -r