C_FLAGS = -O2 LINKER = -Xlinker -Ttext -Xlinker 80100000 #### executable depends on its object files #### and is created/updated by linking them together hellorad: hellorad.o pad.o gcc $(LINKER) hellorad.o pad.o -o hellorad #### object file depends on source and header files #### and is created/updated by compilation hellorad.o: hellorad.c pad.h gcc -c $(C_FLAGS) hellorad.c