view interps/bfjoust/Makefile @ 11688:06331fefa90d draft

<b_jonas> perl -e for $e ("i","u"){ $f="bin/date$e"; open my$i,"<",$f or die "error open $f r"; local$/; $s=<$i> or die; $s=~s/"\\+%Y/\\${1:+-d "\\$1"} $&/ or die; open $o,">",$f or die "error open $f w: $!"; print $o $s or die; close $o or die; print "OK $f\\n" }
author HackEso <hackeso@esolangs.org>
date Fri, 04 Jan 2019 21:30:13 +0000
parents 859f9b4339e6
children
line wrap: on
line source

CC=gcc -std=gnu99
CFLAGS=-O2 -g
LDFLAGS=

EGOJOUST_OBJS=gearlance.o

REPORT_OBJS=report.o
REPORT_LIBS=-pthread

.SUFFIXES: .c .o

all: gearlance report

bfjoust: bfjoust.pl
	cp bfjoust.pl bfjoust

gearlance: $(EGOJOUST_OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(EGOJOUST_OBJS) -o gearlance

report: $(REPORT_OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(REPORT_OBJS) $(REPORT_LIBS) -o report

.c.o:
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f bfjoust
	rm -f $(EGOJOUST_OBJS) gearlance
	rm -f $(REPORT_OBJS) report