shmuliar-sp-kr-lab4/Makefile

29 lines
526 B
Makefile
Raw Normal View History

2024-12-11 20:30:24 +02:00
CFLAGS=-O3 -Iinc/
build: main
test: tester
tester: out/tester.o out/swapper.o
gcc $(CFLAGS) out/tester.o out/swapper.o -o tester
out/tester.o: out/ src/tester.c
gcc $(CFLAGS) -c src/tester.c -o out/tester.o
2024-12-11 20:30:24 +02:00
out/:
mkdir out/
main: out/main.o out/swapper.o
gcc $(CFLAGS) out/main.o out/swapper.o -o main
out/main.o: out/ src/main.c
gcc $(CFLAGS) -c src/main.c -o out/main.o
out/swapper.o: out/ src/swapper.c
gcc $(CFLAGS) -c src/swapper.c -o out/swapper.o
clean:
rm -r main tester out/
2024-12-11 20:30:24 +02:00
.PHONY: build test clean