view interps/fukyorbrane/Makefile @ 7137:59c9be91adcd

<oerjan> mkx bin/slashlearn//sep="/"; [[ "$0" == *//* ]] && sep="//"; [[ "$1" == ?*"$sep"* ]] || exit 1; key="$(echo "${1%%$sep*}" | lowercase)"; value="${1#*$sep}"; [ -e "wisdom/$topic" ] && verb="Relearned" || verb="Learned"; echo "$value" > "$(echo-p "wisdom/$key")" && echo "$verb \xc2\xab$key\xc2\xbb"
author HackBot
date Sun, 06 Mar 2016 16:48:02 +0000
parents 859f9b4339e6
children
line wrap: on
line source

CC=gcc
CFLAGS=-O2 -g
LDFLAGS=

FYB_OBJS=fukyorbrane.o
REPORT_OBJS=report.o
REPORT_LIBS=-pthread

.SUFFIXES: .c .o

all: fukyorbrane report

fukyorbrane: $(FYB_OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(FYB_OBJS) -o fukyorbrane

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

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

clean:
	rm -f $(FYB_OBJS) fukyorbrane
	rm -f $(REPORT_OBJS) report