]>
Commit | Line | Data |
---|---|---|
f1ca4da6 | 1 | # Makefile.in for splat kernel module |
2 | ||
3 | MODULES := splat | |
f1ca4da6 | 4 | DISTFILES = Makefile.in \ |
5 | splat-kmem.c splat-random.c splat-taskq.c \ | |
6 | splat-time.c splat-condvar.c splat-mutex.c \ | |
7c50328b | 7 | splat-rwlock.c splat-thread.c \ |
8 | splat-ctl.c splat-internal.h | |
9 | ||
3d4ea0ce | 10 | CPPFLAGS += @KERNELCPPFLAGS@ |
f1ca4da6 | 11 | |
715f6251 | 12 | # Solaris Porting LAyer Tests |
f1ca4da6 | 13 | obj-m := splat.o |
14 | ||
15 | splat-objs += splat-ctl.o | |
16 | splat-objs += splat-kmem.o | |
17 | splat-objs += splat-taskq.o | |
18 | splat-objs += splat-random.o | |
19 | splat-objs += splat-mutex.o | |
20 | splat-objs += splat-condvar.o | |
21 | splat-objs += splat-thread.o | |
22 | splat-objs += splat-rwlock.o | |
23 | splat-objs += splat-time.o | |
4b171585 | 24 | splat-objs += splat-vnode.o |
9490c148 | 25 | splat-objs += splat-kobj.o |
9f4c835a | 26 | splat-objs += splat-atomic.o |
f1ca4da6 | 27 | |
28 | splatmodule := splat.ko | |
29 | splatmoduledir := @kmoduledir@/kernel/lib/ | |
30 | ||
a0aadf56 | 31 | install: |
f1ca4da6 | 32 | mkdir -p $(DESTDIR)$(splatmoduledir) |
33 | $(INSTALL) -m 644 $(splatmodule) $(DESTDIR)$(splatmoduledir)/$(splatmodule) | |
34 | -/sbin/depmod -a | |
35 | ||
36 | uninstall: | |
37 | rm -f $(DESTDIR)$(splatmoduledir)/$(splatmodule) | |
38 | -/sbin/depmod -a | |
39 | ||
40 | clean: | |
41 | -rm -f $(splmodule) *.o .*.cmd *.mod.c *.ko *.s */*.o | |
42 | ||
43 | distclean: clean | |
44 | rm -f Makefile | |
45 | rm -rf .tmp_versions | |
46 | ||
47 | maintainer-clean: distclean | |
48 | ||
49 | distdir: $(DISTFILES) | |
50 | cp -p $(DISTFILES) $(distdir) |