.profile
variables.mak
OBJECTS = main.o printhelloworld.o hello.o world.o
targets.mak
# The executable 'helloworld' depends on all object files listed in $(OBJECTS) helloworld: $(OBJECTS) cc -o helloworld $(OBJECTS) # TAB before command!
clean.mak
# Remove object files, executables (UNIX/Windows), Emacs backup files, and core files .PHONY : clean clean: rm -rf $(OBJECTS) helloworld helloworld.exe *~ *.core core # TAB before command!
Makefile
include variables.mak targets.mak clean.mak