Those makefiles aren't a speciality of linux. they are very common (BCB, VC++,GCC)
How does your makefile look ? Maybe take a look at the makefile of the hello program example and try to build it (look a bit closer in the guide):
# # configurable options# - set DEBUG = 1 to turn on debugging support#
DEBUG = 1
PROJ_NAME = hello
INSTALL_DIR =
PROGS := $(PROJ_NAME).exe
CFLAGS +=
# # You should not need to modify anything beyond this point#
TOPDIR = ..
include $(TOPDIR)/Rules.mak
ifeq '$(DEBUG)' '1'
PROGS += $(PROGS:.exe=.gdb)
endif
all: $(PROGS)
.PHONY: clean
clean:
-rm -f *.[oad] *.elf *.gdb *.bin *.exe
.PHONY: install
install: all
ifeq "$(INSTALL_DIR)" ""
$(error No installation directory specified)
endif
mkdir -p $(INSTALL_DIR)/bin
install -v $(filter %.exe, $(PROGS)) $(INSTALL_DIR)/bin