view src/ploki/Makefile @ 12292:d51f2100210c draft

<kspalaiologos> `` cat <<<"asmbf && bfi output.b" > /hackenv/ibin/asmbf
author HackEso <hackeso@esolangs.org>
date Thu, 02 Jan 2020 15:38:21 +0000
parents ac0403686959
children
line wrap: on
line source

# vi: set ft=make:
PREFIX = /usr/local
INSTDIR = $(PREFIX)/bin

CC = gcc
#CC = cc

#COPT = -DDEBUGGING -g
COPT = -g -O2
#COPT = -xO4 -xalias_level=std -xbuiltin=%all -xdepend -xinline=%auto -xlibmil -xtarget=native
#COPT = -O
#COPT =

LDOPT =
#LDOPT = -s

CPP = $(CC) -E
#CPP = cpp

DEPEND = $(CPP) -MM
#DEPEND = $(CC) -xM1

CFLAGS = $(COPT) -W -Wall -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -std=gnu9x -pedantic -fstrict-aliasing -pipe
#CFLAGS = $(COPT) -W -Wall -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -std=gnu99 -pedantic -fstrict-aliasing -pipe
#CFLAGS = $(COPT) -Xc
#CFLAGS = $(COPT)

LDFLAGS = $(LDOPT) -lm

ECHO = echo
CAT = cat
CP = cp
RMF = rm -f
TAR = tar
CTAGS = ctags
#CTAGS = ctags --langmap=c:.c.h
ZIP = bzip2
ZIP_EXT = .bz2
BASENAME = basename
PWD = pwd

# # # # #

OBJ = IO.o Str.o atechit.o compile.o deparse.o expr.o hang.o hash.o inc.o \
      kork.o list.o main.o mars.o match.o op.o opt.o parse.o pp.o random.o \
      re.o run.o strhash.o strutil.o sub.o text.o transmogrify.o val.o \
      variable.o venus.o version.o xmalloc.o zz.o

all: tags ploki

tags: *.c *.h
	$(CTAGS) *.c *.h

distclean: clean
	$(RMF) core examples/core a.out
clean:
	$(RMF) *.o ploki
realclean: clean
	$(RMF) *.depend Makefile

remake: clean all

ploki: $(OBJ)
	$(CC) -o ploki $(OBJ) $(LDFLAGS)

install: ploki
	$(CP) ploki '$(INSTDIR)/'

version.c: version.c.in VERSION
	$(CP) version.c.in version.c
	$(ECHO) '"'"`$(CAT) VERSION`"'";' >>version.c

########################################################################
IO.o: IO.c config.h IO.h Str.h main.h main_io.h xmalloc.h zz.h
Str.o: Str.c config.h Str.h strutil.h xmalloc.h
atechit.o: atechit.c zz.h config.h atechit.h main.h
compile.o: compile.c config.h Str.h compile.h text.h op.h IO.h expr.h \
  re.h stack.h xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h \
  main_var.h zz.h
deparse.o: deparse.c config.h Str.h deparse.h text.h op.h IO.h expr.h \
  re.h stack.h xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h \
  main_io.h main_label.h mars.h venus.h hash.h zz.h
expr.o: expr.c config.h Str.h expr.h op.h IO.h re.h stack.h xmalloc.h \
 strhash.h val.h kork.h list.h sub.h variable.h hang.h main_io.h \
 main_label.h mars.h venus.h hash.h main_var.h match.h pp.h random.h \
 run.h text.h zz.h
hang.o: hang.c config.h hang.h
hash.o: hash.c config.h hash.h main.h main_opt.h random.h xmalloc.h
inc.o: inc.c config.h inc.h
kork.o: kork.c config.h IO.h Str.h kork.h strutil.h xmalloc.h
list.o: list.c list.h config.h val.h IO.h Str.h kork.h sub.h xmalloc.h
main.o: main.c IO.h config.h Str.h atechit.h compile.h text.h op.h expr.h \
  re.h stack.h xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h \
  deparse.h inc.h main.h main_io.h main_label.h mars.h venus.h hash.h \
  main_opt.h main_var.h opt.h parse.h random.h run.h transmogrify.h \
  version.h zz.h
mars.o: mars.c Str.h config.h mars.h op.h IO.h expr.h re.h stack.h \
  xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h
match.o: match.c IO.h config.h Str.h main_io.h main_opt.h match.h re.h \
  val.h kork.h list.h sub.h run.h op.h expr.h stack.h xmalloc.h strhash.h \
  variable.h text.h
op.o: op.c IO.h config.h Str.h expr.h op.h re.h stack.h xmalloc.h \
  strhash.h val.h kork.h list.h sub.h variable.h main_label.h mars.h \
  venus.h hash.h
opt.o: opt.c opt.h
parse.o: parse.c IO.h config.h Str.h inc.h main.h main_label.h mars.h \
  op.h expr.h re.h stack.h xmalloc.h strhash.h val.h kork.h list.h sub.h \
  variable.h venus.h hash.h parse.h text.h
pp.o: pp.c IO.h config.h Str.h kork.h list.h main_io.h main_opt.h match.h \
  re.h val.h sub.h pp.h run.h op.h expr.h stack.h xmalloc.h strhash.h \
  variable.h text.h
random.o: random.c config.h random.h
re.o: re.c config.h IO.h Str.h hash.h main_io.h main_opt.h re.h xmalloc.h \
 zz.h re_block.c.h
run.o: run.c config.h IO.h Str.h atechit.h expr.h op.h re.h stack.h \
  xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h hang.h main.h \
  main_io.h main_label.h mars.h venus.h hash.h main_opt.h run.h text.h \
  zz.h
strhash.o: strhash.c hash.h strhash.h config.h strutil.h xmalloc.h
strutil.o: strutil.c strutil.h config.h
sub.o: sub.c expr.h config.h Str.h op.h IO.h re.h stack.h xmalloc.h \
  strhash.h val.h kork.h list.h sub.h variable.h main_opt.h \
  transmogrify.h text.h
text.o: text.c text.h op.h IO.h config.h Str.h expr.h re.h stack.h \
  xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h
transmogrify.o: transmogrify.c config.h Str.h expr.h op.h IO.h re.h \
  stack.h xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h \
  main_label.h mars.h venus.h hash.h text.h transmogrify.h zz.h
val.o: val.c config.h IO.h Str.h val.h kork.h list.h sub.h xmalloc.h
variable.o: variable.c config.h Str.h strhash.h variable.h xmalloc.h
venus.o: venus.c Str.h config.h hash.h op.h IO.h expr.h re.h stack.h \
  xmalloc.h strhash.h val.h kork.h list.h sub.h variable.h venus.h zz.h
version.o: version.c version.h
xmalloc.o: xmalloc.c config.h main.h xmalloc.h
zz.o: zz.c zz.h config.h main.h