24 lines
304 B
Makefile
24 lines
304 B
Makefile
|
CC=gcc
|
||
|
CFLAGS=-g3
|
||
|
LIBFLAGS=-c
|
||
|
CFILES=streecmp.c
|
||
|
TFILES=test.c
|
||
|
OUTPUT=streecmp
|
||
|
TOUTPUT=test
|
||
|
|
||
|
all:
|
||
|
$(CC) $(LIBFLAGS) $(CFLAGS) $(CFILES) -o $(OUTPUT)
|
||
|
make test
|
||
|
|
||
|
test:
|
||
|
$(CC) $(CFLAGS) $(CFILES) $(TFILES) -o $(TOUTPUT)
|
||
|
|
||
|
run:
|
||
|
./$(OUTPUT)
|
||
|
|
||
|
run_test:
|
||
|
./$(TOUTPUT)
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(OUTPUT) $(TOUTPUT)
|