Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (41 sloc) 1.066 kB
#
# Makefile --
#
# Makefile for building Wings 3D.
#
# Copyright (c) 2001-2006 Bjorn Gustavsson
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# $Id$
#
.SUFFIXES: .erl .jam .beam .yrl .xrl .bin .mib .hrl .sgml .html .ps .3 .1 \
.fig .dvi .tex .class .java .pdf .psframe .pscrop
include ../vsn.mk
ESRC=.
EBIN=.
ERLC=erlc
ifeq ($(TYPE),debug)
TYPE_FLAGS=-DDEBUG +debug_info
else
TYPE_FLAGS=+debug_info
endif
MODULES= tools
TARGET_FILES= $(MODULES:%=$(EBIN)/%.beam)
# ----------------------------------------------------
# FLAGS
# ----------------------------------------------------
ERL_FLAGS +=
ERL_COMPILE_FLAGS += -W $(TYPE_FLAGS) +debug_info
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
opt debug:
$(MAKE) TYPE=$@ common
common: $(TARGET_FILES)
clean:
rm -f $(TARGET_FILES)
rm -f core
$(EBIN)/%.beam: $(ESRC)/%.erl
$(ERLC) $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
Jump to Line
Something went wrong with that request. Please try again.