my-solutions/problems/template/Makefile

15 lines
153 B
Makefile
Raw Normal View History

2022-11-17 17:11:40 +05:00
all: lib.o main.o
gcc -Wall -o bin lib.o main.o
lib.o: lib.c
gcc -c -Wall lib.c
main.o: main.c
gcc -c -Wall main.c
run:
./bin
clean:
rm *.o bin