pipetools/makefile

34 lines
441 B
Makefile
Raw Permalink Normal View History

2020-04-18 17:30:45 +02:00
.POSIX:
.PHONY: all install clean
PREFIX=/usr/local
TARGETS=bin2csv\
csv2bin\
int2float\
normfloat
CC=cc
CFLAGS=-Wall -Wextra -Wshadow -Wpedantic -std=c99 -O2
all: $(TARGETS)
bin2csv: bin2csv.c
$(CC) $? $(CFLAGS) -o $@
csv2bin: csv2bin.c
$(CC) $? $(CFLAGS) -o $@
normfloat: normfloat.c
$(CC) $? $(CFLAGS) -o $@
int2float: int2float.c
$(CC) $? $(CFLAGS) -o $@
clean:
rm $(TARGETS)
install: $(TARGETS)
cp $? $(PREFIX)/bin/