aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 38b2b3d21d0945b7f9d8b1f4bc1e1d336538450c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
VERSION=\"v0.0.1\"
CC = gcc
CFLAGS = -O3 -s -mtune=native -Wall -DVERSION=$(VERSION) -Wextra
SRC = src
BIN = bin

all: output_dir $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone

output_dir: 
	mkdir -p $(BIN)
$(BIN)/strstream: $(SRC)/strstream.c
	$(CC) $(SRC)/strstream.c -o $(BIN)/strstream $(CLIBS) $(CFLAGS)
$(BIN)/strstreamone: $(SRC)/strstreamone.c
	$(CC) $(SRC)/strstreamone.c -o $(BIN)/strstreamone $(CLIBS) $(CFLAGS)
$(BIN)/melting_range: $(SRC)/melting_range.c
	$(CC) $(SRC)/melting_range.c -o $(BIN)/melting_range $(CLIBS) $(CFLAGS)

clean:
	rm -vf $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone