… | |
… | |
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | # |
23 | # |
24 | # The author can be reached via e-mail to mark@pyramid.com |
24 | # The author can be reached via e-mail to mark@pyramid.com |
25 | |
25 | |
26 | |
26 | |
27 | pkglib_PROGRAMS = random_map |
27 | #pkglib_PROGRAMS = random_map |
28 | |
28 | |
29 | random_map_SOURCES = standalone.C |
29 | #random_map_SOURCES = standalone.C |
30 | |
30 | |
31 | noinst_LIBRARIES = librandom_map.a |
31 | noinst_LIBRARIES = librandom_map.a |
32 | |
|
|
33 | reader.C: reader.l |
|
|
34 | flex -Prmap -i reader.l |
|
|
35 | sed '/^#/ s|lex.rmap\.c|reader.c|' lex.rmap.c >reader.C |
|
|
36 | rm -f lex.rmap.c |
|
|
37 | |
32 | |
38 | librandom_map_a_SOURCES = random_map.C \ |
33 | librandom_map_a_SOURCES = random_map.C \ |
39 | room_gen_onion.C \ |
34 | room_gen_onion.C \ |
40 | room_gen_spiral.C \ |
35 | room_gen_spiral.C \ |
41 | maze_gen.C \ |
36 | maze_gen.C \ |
42 | reader.C \ |
|
|
43 | floor.C \ |
37 | floor.C \ |
44 | wall.C \ |
38 | wall.C \ |
45 | monster.C \ |
39 | monster.C \ |
46 | door.C \ |
40 | door.C \ |
47 | decor.C \ |
41 | decor.C \ |
… | |
… | |
63 | AM_CPPFLAGS = -I$(top_srcdir)/include |
57 | AM_CPPFLAGS = -I$(top_srcdir)/include |
64 | |
58 | |
65 | LEX_OUTPUT_ROOT = lex.rmap |
59 | LEX_OUTPUT_ROOT = lex.rmap |
66 | AM_LFLAGS = -Prmap -i |
60 | AM_LFLAGS = -Prmap -i |
67 | |
61 | |
68 | random_map_LDADD = ../common/libcross.a librandom_map.a |
62 | #random_map_LDADD = ../common/libcross.a librandom_map.a |
69 | |
63 | |
70 | proto: |
64 | proto: |
71 | cproto -e -o rproto.h.bak $(CPPFLAGS) -I. $(AM_CPPFLAGS) \ |
65 | cproto -e -o rproto.h.bak $(CPPFLAGS) -I. $(AM_CPPFLAGS) \ |
72 | `echo $(librandom_map_a_SOURCES) | $(AWK) -v RS=" " '/.C$$/ { print }'` |
66 | `echo $(librandom_map_a_SOURCES) | $(AWK) -v RS=" " '/.C$$/ { print }'` |
73 | sed -e "s/#if __STDC__/#ifdef __STDC__/" -e "s/__signed/signed/g" -e "/__inline/d" -e "/YY_BUFFER/d" < rproto.h.bak >rproto.h |
67 | sed -e "s/#if __STDC__/#ifdef __STDC__/" -e "s/__signed/signed/g" -e "/__inline/d" -e "/YY_BUFFER/d" < rproto.h.bak >rproto.h |