summaryrefslogtreecommitdiff
path: root/threadproc/beos/Makefile.in
blob: b09d8d27826cb40ddde4314f6d09ad3962981fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
#LIBS=$(EXTRA_LIBS) $(LIBS1)
#INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
#LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)

CC=@CC@
RANLIB=@RANLIB@
CFLAGS=@CFLAGS@ @OPTIM@
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@ $(LIBS)
INCDIR=../../inc
INCDIR1=../../include
INCDIR2=../../file_io/unix
INCLUDES=-I$(INCDIR) -I$(INCDIR1) -I$(INCDIR2) -I.

LIB=libthreadproc.a

OBJS=proc.o \
	thread.o \
	threadcancel.o \
	threadpriv.o \
	signals.o \
         procsup.o \
         apr_proc_stub

.c.o:
	$(CC) $(CFLAGS) -c $(INCLUDES) $<

all: $(LIB)

apr_proc_stub:
	$(CC) apr_proc_stub.c \
	&& cp apr_proc_stub /boot/home/config/bin

clean:
	$(RM) -f *.o *.a *.so /boot/home/config/bin/apr_proc_stub apr_proc_stub

distclean: clean
	-$(RM) -f Makefile

$(OBJS): Makefile

$(LIB): $(OBJS)
	$(RM) -f $@
	$(AR) cr $@ $(OBJS)
	$(RANLIB) $@

#
# We really don't expect end users to use this rule.  It works only with
# gcc, and rebuilds Makefile.tmpl.  You have to re-run Configure after
# using it.
#
depend:
	cp Makefile.in Makefile.in.bak \
	    && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in > Makefile.new \
	    && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
	    && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
	           -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
		> Makefile.in \
	    && rm Makefile.new

# DO NOT REMOVE
apr_proc_stub.o: apr_proc_stub.c
proc.o: proc.c threadproc.h ../../include/apr_thread_proc.h \
 ../../include/apr_file_io.h ../../include/apr_general.h \
 ../../include/apr_config.h ../../include/apr_errno.h \
 ../../include/apr_win.h ../../file_io/unix/fileio.h \
 ../../include/apr_portable.h ../../include/apr_network_io.h \
 ../../include/apr_lock.h ../../include/apr_time.h
procsup.o: procsup.c threadproc.h ../../include/apr_thread_proc.h \
 ../../include/apr_file_io.h ../../include/apr_general.h \
 ../../include/apr_config.h ../../include/apr_errno.h \
 ../../include/apr_win.h ../../file_io/unix/fileio.h \
 ../../include/apr_lib.h
signals.o: signals.c threadproc.h ../../include/apr_thread_proc.h \
 ../../include/apr_file_io.h ../../include/apr_general.h \
 ../../include/apr_config.h ../../include/apr_errno.h \
 ../../include/apr_win.h ../../file_io/unix/fileio.h
thread.o: thread.c threadproc.h ../../include/apr_thread_proc.h \
 ../../include/apr_file_io.h ../../include/apr_general.h \
 ../../include/apr_config.h ../../include/apr_errno.h \
 ../../include/apr_win.h ../../file_io/unix/fileio.h
threadcancel.o: threadcancel.c threadproc.h \
 ../../include/apr_thread_proc.h ../../include/apr_file_io.h \
 ../../include/apr_general.h ../../include/apr_config.h \
 ../../include/apr_errno.h ../../include/apr_win.h \
 ../../file_io/unix/fileio.h
threadpriv.o: threadpriv.c threadproc.h \
 ../../include/apr_thread_proc.h ../../include/apr_file_io.h \
 ../../include/apr_general.h ../../include/apr_config.h \
 ../../include/apr_errno.h ../../include/apr_win.h \
 ../../file_io/unix/fileio.h