parslib/Makefile

24 lines
431 B
Makefile
Raw Normal View History

2024-08-15 23:12:06 +00:00
CC=gcc
CFLAGS=-g3
2024-09-04 09:04:08 +00:00
CFILES=parslib.c strings.c
TEST_FILES=test.c
OUTPUT=parslib.o
TOUTPUT=test
2024-08-15 23:12:06 +00:00
all: $(FILES)
$(CC) -c $(CFLAGS) -o parslib.o parslib.c
$(CC) -c $(CFLAGS) -o strings.o strings.c
$(CC) -c $(CFLAGS) -o streecmp/streecmp.o streecmp/streecmp.c
test: all
$(CC) $(CFLAGS) $(TEST_FILES) parslib.o strings.o streecmp/streecmp.o -o $(TOUTPUT)
run_test:
./$(TOUTPUT)
2024-08-15 23:12:06 +00:00
run:
./$(OUTPUT)
clean:
rm -rf *.o $(TOUTPUT)