User Tools

Site Tools


c:pthreads:makefile

This is an old revision of the document!


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.1705441384.txt.gz · Last modified: (external edit)