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