16 lines
306 B
Makefile
16 lines
306 B
Makefile
|
CC = gcc
|
||
|
CFLAGS = -g -Wall -Werror
|
||
|
|
||
|
all: program
|
||
|
|
||
|
program: compressor.o main.o
|
||
|
$(CC) $(CFLAGS) compressor.o main.o -o program
|
||
|
|
||
|
compressor.o: compressor.c
|
||
|
$(CC) $(CFLAGS) -c compressor.c -o compressor.o
|
||
|
|
||
|
main.o: main.c
|
||
|
$(CC) $(CFLAGS) -c main.c -o main.o
|
||
|
|
||
|
clean:
|
||
|
rm -rf program *.o *.exe *.exe.stackdump
|