34 lines
441 B
Makefile
34 lines
441 B
Makefile
.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/
|
|
|