1 #####
2 #
3 # Makefile for FUSD
4 #
5
6 # Change this to reflect where your kernel sources are
7 KERNEL_HOME := /usr/src/linux
8
9 ##################################################################
10
11
12 TARGETS := \
13 libfusd.a \
14 kfusd.o \
15 regdevice \
16 opentest \
17 simpleopen \
18 torturetest \
19 zero-fusd \
20 thruput \
21 openclose \
22 statetest \
23 oracle \
24 ioctl \
25 select_test \
26 rwtest \
27 helloworld \
28 uid-filter \
29 drums \
30 drums2 \
31 drums3 \
32 echo \
33 console-read \
34 pager \
35 logring \
36
37 SRCDIRS := \
38 kfusd \
39 libfusd \
40 test
41
42 MODULENAME := .
43 POSTROOT := .
44 include $(POSTROOT)/make.include
45
46
47 ####################################################
48
49
50 $(OBJDIR)/kfusd.o: $(MODPATH)/kfusd/kfusd.c fusd_msg.h kfusd.h
51 $(CC) $(KCFLAGS) -c $(MODPATH)/kfusd/kfusd.c -o $(OBJDIR)/kfusd.o
52
53 $(OBJDIR)/libfusd.a: $(OBJDIR)/libfusd.o
54 $(AR) -cr $(OBJDIR)/libfusd.a $(OBJDIR)/libfusd.o
55
56 $(OBJDIR)/thruput: $(MODPATH)/test/thruput.c
57 $(CC) $(CCFLAGS) $< -o $@
58
59 $(OBJDIR)/%: $(MODPATH)/test/%.c fusd.h $(OBJDIR)/libfusd.a
60 $(CC) $(CCFLAGS) $< -o $@ -lfusd
61 $(OBJDIR)/%: $(MODPATH)/examples/%.c fusd.h $(OBJDIR)/libfusd.a
62 $(CC) $(CCFLAGS) $< -o $@ -lfusd
63
64 install:
65 cp $(OBJDIR)/libfusd.a /usr/local/lib
66 cp include/*.h /usr/local/include
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.