Forum Discussion
Altera_Forum
Honored Contributor
21 years agoProblems with pthreds
I'm a program benchmark with pthreads, but I'm having really problems with it. Now i'm only want to do a simple hello world, but when I execute it the uClinux reinit another time. Can som...
Altera_Forum
Honored Contributor
21 years agoinclude 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