Makefile 362 Bytes
Newer Older
Mart Lubbers's avatar
Mart Lubbers committed
1
CLEAN_HOME?=/opt/clean
2

3
test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o
Mart Lubbers's avatar
a    
Mart Lubbers committed
4
	clm -dynamics -I $(CLEAN_HOME)/lib/Dynamics $(basename $<) -o $@
Mart Lubbers's avatar
Mart Lubbers committed
5

Mart Lubbers's avatar
Mart Lubbers committed
6
7
ifeq ($(OS), Windows_NT)
Clean\ System\ Files/ctty.o: tty_win.c
8
else
Mart Lubbers's avatar
Mart Lubbers committed
9
Clean\ System\ Files/ctty.o: tty_posix.c
10
endif
Mart Lubbers's avatar
Mart Lubbers committed
11
12
	mkdir -p Clean\ System\ Files
	gcc -c $< -o "$@"
Mart Lubbers's avatar
Mart Lubbers committed
13
14

clean:
Mart Lubbers's avatar
Mart Lubbers committed
15
	$(RM) -r Clean\ System\ Files/* test