Changed the makefile system to autoconf/automake.
[cacao.git] / threads / Makefile.pre-automake
1
2 #######################################################################
3 #          Makefile f"ur meine programmunabh"angige Toolbox           #
4 #######################################################################
5
6 OBJECTS = locks.o thread.o threadio.o
7 CC = gcc
8
9 ifeq ($(USE_THREADS),YES)
10 THREAD_CFLAGS = -DUSE_THREADS -DEXTERNAL_OVERFLOW -DDONT_FREE_FIRST
11 else
12 THREAD_CFLAGS =
13 endif
14
15 CFLAGS = $(THREAD_CFLAGS)
16
17 threads.a: $(OBJECTS) Makefile
18         rm -f threads.a
19         ar qcs threads.a $(OBJECTS)
20 #       ranlib threads.a
21
22 locks.o : locks.c thread.h sysdep/threads.h ../tables.h ../native.h\
23            ../loader.h ../builtin.h ../asmpart.h
24 thread.o : thread.c thread.h sysdep/threads.h ../tables.h ../native.h\
25            ../loader.h ../builtin.h ../asmpart.h
26 threadio.o : threadio.c thread.h sysdep/threads.h ../tables.h ../native.h\
27            ../loader.h ../builtin.h ../asmpart.h
28
29 clean: 
30         rm -f *.o *.a