File: Makefile

package info (click to toggle)
libsdl-erlang 0.96.0626-11
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,180 kB
  • ctags: 7,388
  • sloc: ansic: 12,588; erlang: 7,684; makefile: 243; sh: 224; objc: 181
file content (26 lines) | stat: -rwxr-xr-x 638 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
#  Copyright (c) 2001 Dan Gudmundsson
#  See the file "license.terms" for information on usage and redistribution
#  of this file, and for a DISCLAIMER OF ALL WARRANTIES.
# 
#     $Id: Makefile,v 1.2 2005/06/29 14:45:39 dgud Exp $
#

TestMods	= testsprite testgl testbin erldemo testaudio testjoy testglutess
TestTargets	= $(TestMods:%=%.beam)

# Targets
target:	$(TestTargets)

clean:
	rm -f $(TestTargets)
	rm -f *~ core erl_crash.dump

# Rules
ESRC = .
EBIN = .
ERLC = erlc
ERLINC = ../include
ERL_COMPILE_FLAGS = -pa ../../esdl/ebin

%.beam: $(ESRC)/%.erl
	$(ERLC) -W -I$(ERLINC) -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<