Commit e883e832 authored by Mart Lubbers's avatar Mart Lubbers

fix makefile forgood with an ugly hack

parent 9ccc9f25
CLEAN_HOME?=/opt/clean
GCCVERSIONGTEQ6:=$(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 6)
test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o
if hash gcc-5 2>/dev/null;\
then clm -dynamics -l -no-pie -I $(CLEAN_HOME)/lib/Dynamics $(basename $<) -o $@; \
else clm -dynamics -I $(CLEAN_HOME)/lib/Dynamics $(basename $<) -o $@; \
fi
ifeq "$(GCCVERSIONGTEQ6)" "1"
clm -l -no-pie -I $(CLEAN_HOME)/lib/Dynamics $(basename $<) -o $@
else
clm -I $(CLEAN_HOME)/lib/Dynamics $(basename $<) -o $@
endif
Clean\ System\ Files/ctty.o: tty.c
if hash gcc-5 2>/dev/null;\
then gcc-5 -DDEBUG -c $< -o "$@"; \
else gcc -DDEBUG -c $< -o "$@"; \
fi
ifeq "$(GCCVERSIONGTEQ6)" "1"
gcc-5 -DDEBUG -c $< -o "$@"
else
gcc -DDEBUG -c $< -o "$@"
endif
clean:
$(RM) -r Clean\ System\ Files/* test
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment