-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
31 lines (23 loc) · 623 Bytes
/
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
# mostly copied from Eden Li's mysql interface
# "Who is supposed to grok this mess?" --- phf
include $(GOROOT)/src/Make.$(GOARCH)
TARG=openal
CGOFILES=core.go
#GOFILES=error.go util.go
CGO_LDFLAGS=-lopenal -lalut
CLEANFILES+=example hello hey al-example
include $(GOROOT)/src/Make.pkg
example: install example.go
$(GC) example.go
$(LD) -o $@ example.$O
al-example: install al-example.go
$(GC) al-example.go
$(LD) -o $@ al-example.$O
hey: install hey.go
$(GC) hey.go
$(LD) -o $@ hey.$O
hello: hello.c
gcc hello.c -c -o hello.o
gcc hello.o -lopenal -lalut -o hello
#test.db:
# sqlite3 test.db <create_db.sql