PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-25/SWIG/Tools/WAD/Wad/Makefile.in

#
Autoconf | 73 lines | 39 code | 21 blank | 13 comment | 0 complexity | 03e2922727c9dd99de77d24eab4ed3bf MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1#######################################################################
 2# WAD Makefile
 3#
 4# David Beazley
 5# January 1, 2001
 6#######################################################################
 7
 8# These are the files that make up the WAD core
 9WADSRCS = string.c vars.c io.c memory.c return.c default.c stack.c stab.c elf.c object.c init.c segment.c signal.c
10WADOBJS = string.o vars.o io.o memory.o return.o default.o stack.o stab.o elf.o object.o signal.o segment.o init.o
11INCLUDE = -I../Include -I.  $(SINCLUDE)
12WADOPT     = @WADOPT@
13
14
15# Location of your Perl installation
16PERLINCLUDE = @PERL5EXT@
17PERLSRCS   = wadpl.cxx
18PERLOBJS   = wadpl.o
19
20# C Compiler
21CC = @CC@
22CFLAGS = #@CCSHARED@
23
24# C++ Compiler
25CXX = @CXX@
26CXXFLAGS = #@CXXSHARED@
27
28# Linking options
29CLINK = 
30CXXLINK = @CXXLINK@
31
32# AR
33AR = @AR@
34
35# Rules for creation of a .o file from .cxx
36.SUFFIXES: .cxx
37.cxx.o:
38	$(CXX) $(CXXFLAGS) $(WADOPT) $(INCLUDE) -c -o $*.o $<
39
40.c.o:
41	$(CC) $(CFLAGS) $(WADOPT) $(INCLUDE) -c -o $*.o $<
42
43wad:    $(WADOBJS) main.o
44	$(CXXLINK) $(WADOBJS) main.o -o libwad.so 
45	$(AR) cr libwadcore.a $(WADOBJS)
46	cp libwad.so ..
47	cp libwadcore.a ..
48
49perl: wad_perl_handler.c $(WADOBJS) $(PERLOBJS)
50	$(CXXLINK) $(WADOBJS) $(PERLOBJS) -o libwadpl.so
51	cp libwadpl.so ..
52
53wad_perl_handler.c:
54	python makehandler.py
55
56debug::
57	cc -g debug.c $(INCLUDE) -L. -R. -lwad
58
59plus::
60	CC -g debug.cxx $(INCLUDE) -L. -R. -lwad
61
62wc::
63	wc $(SRCS)
64
65semi::
66	@egrep ";" $(WADSRCS) plat/*.c | wc
67
68clean::
69	rm -f *.o *.so *~ 
70
71
72
73