User Tools

Site Tools


c:pthreads:makefile

Makefile to compile a pthread app in C

Makefile
# Target for building the program
build: hello
 
# Rule for building the 'hello' executable from 'hello.c'
hello: hello.c
	gcc hello.c -o hello -lpthread
 
# Phony target for cleaning up
.PHONY: clean
clean:
	rm -f hello
c/pthreads/makefile.txt · Last modified: 2024/01/16 23:43 by odefta