include Rules.mak
# # configurable options# - set DEBUG = 1 to turn on debugging support#
DEBUG = 0
PROJ_NAME = threads
INSTALL_DIR =
PROGS := $(PROJ_NAME).exe
CFLAGS +=
# # You should not need to modify anything beyond this point#
ifeq '$(DEBUG)' '1'
CFLAGS += -O0 -g
PROGS += $(PROGS:.exe=.gdb)
endif
all: $(PROGS)
threads.bin: threads.o
.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
this is the Makefile, do you need the rules.mak too?
thanks for all,
Guillem