Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 75 lines (60 sloc) 1.639 kB
a552d9c @giniu initial import
giniu authored
1 #
2 # Makefile --
3 #
08dd25c @bjorng Fix for corrupted language files.
bjorng authored
4 # Makefile for building plug-ins for primitives.
a552d9c @giniu initial import
giniu authored
5 #
72bba46 @bjorng Makefiles: Add dependencies to e3d.hrl
bjorng authored
6 # Copyright (c) 2001-2009 Bjorn Gustavsson
a552d9c @giniu initial import
giniu authored
7 #
8 # See the file "license.terms" for information on usage and redistribution
9 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10 #
11 # $Id: Makefile,v 1.14 2006/08/02 22:44:40 antoneos Exp $
12 #
13
14 .SUFFIXES: .erl .jam .beam .yrl .xrl .bin .mib .hrl .sgml .html .ps .3 .1 \
15 .fig .dvi .tex .class .java .pdf .psframe .pscrop
16
17 ESRC=.
18 WINGS_INTL=../../intl_tools
19 EBIN=../../plugins/primitives
20 ERLC=erlc
21 WINGS_SRC=../../src
22 WINGS_E3D=../../e3d
23 ESDL=$(ESDL_PATH)
24
25 ifeq ($(TYPE),debug)
26 TYPE_FLAGS=-DDEBUG
27 else
28 TYPE_FLAGS=
29 endif
30
31 MODULES= \
77942ba NOTE: New Feature: Create Bounding Box added to the primitives menu. …
Richard Jones authored
32 wpc_bbox \
a552d9c @giniu initial import
giniu authored
33 wpc_image \
34 wpc_knot \
35 wpc_spiral \
36 wpc_torus \
37 wpc_plane \
38 wpc_gear \
39 wpc_ncube \
40 wpc_geodome \
41 wpc_tt
7fca8c7 @bjorng Removed the warn_unused_vars option for less clutter (it is default).
bjorng authored
42
a552d9c @giniu initial import
giniu authored
43 TARGET_FILES= $(MODULES:%=$(EBIN)/%.beam)
44
45 # ----------------------------------------------------
46 # FLAGS
47 # ----------------------------------------------------
67bcacb @bjorng Warning for obsolete guards.
bjorng authored
48 ERL_COMPILE_FLAGS += -I $(WINGS_SRC) -I $(WINGS_E3D) -pa $(ESDL)/ebin \
d6cea0d @bjorng Remove the compiler option warn_obsolete_guard.
bjorng authored
49 -W $(TYPE_FLAGS) -pa $(WINGS_INTL) -I $(WINGS_INTL) +debug_info
a552d9c @giniu initial import
giniu authored
50
51 # ----------------------------------------------------
52 # Targets
53 # ----------------------------------------------------
54
55 opt debug:
56 $(MAKE) TYPE=$@ common
57
58 template: opt
5387c02 @bjorng Correction for bug in previous commit.
bjorng authored
59 erl -pa $(WINGS_INTL) -noinput -run tools generate_template_files $(EBIN)
a552d9c @giniu initial import
giniu authored
60
61 lang: template
5387c02 @bjorng Correction for bug in previous commit.
bjorng authored
62 cp *.lang $(EBIN)
7f811e1 @bjorng More corrections.
bjorng authored
63 erl -pa $(WINGS_INTL) -noinput -run tools diff_lang_files $(EBIN)
a552d9c @giniu initial import
giniu authored
64
65 common: $(TARGET_FILES)
66
67 clean:
68 rm -f $(TARGET_FILES)
69 rm -f core
70
71 $(EBIN)/%.beam: $(ESRC)/%.erl
67bcacb @bjorng Warning for obsolete guards.
bjorng authored
72 $(ERLC) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
72bba46 @bjorng Makefiles: Add dependencies to e3d.hrl
bjorng authored
73
74 $(EBIN)/wpc_image.beam $(EBIN)/wpc_tt.beam: $(WINGS_E3D)/e3d.hrl
Something went wrong with that request. Please try again.