2016-10-05 10:52:58 +00:00
|
|
|
CC=gcc
|
2016-10-21 17:47:52 +00:00
|
|
|
CFLAGS=-Wall -std=c99
|
2016-10-05 10:52:58 +00:00
|
|
|
SRC=src
|
|
|
|
PROG=compress
|
|
|
|
|
2016-10-21 17:47:52 +00:00
|
|
|
all: main.o compress.o huftree.o display.o
|
|
|
|
$(CC) $^ $(CFLAGS) -o $(PROG)
|
2016-10-05 10:52:58 +00:00
|
|
|
|
2016-10-12 10:28:38 +00:00
|
|
|
%.o: src/%.c
|
2016-10-21 17:47:52 +00:00
|
|
|
$(CC) $(CFLAGS) -c $^
|
2016-10-05 10:52:58 +00:00
|
|
|
|
2016-10-12 10:28:38 +00:00
|
|
|
clean:
|
|
|
|
rm -f $(PROG) *.o
|