File: Makefile

package info (click to toggle)
mol 0.9.71.dfsg-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,612 kB
  • ctags: 12,442
  • sloc: ansic: 65,368; asm: 3,437; makefile: 793; sh: 710; yacc: 706; lex: 501; perl: 160; cpp: 121; pascal: 18
file content (85 lines) | stat: -rw-r--r-- 2,766 bytes parent folder | download
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
#
# Mac-on-Linux makefile
# Copyright (C) 2004 Samuel Rydh (samuel@ibrium.se)
#

top-all:	
include		config/Makefile.top
include		config/Makefile.master

SUBDIRS		= . scripts src
MAKE		+= -s

$(OINC)/cpu: $(OINC)/.dir
	@rm -f $@
	@ln -s ../stree/src/include/$(CPU) $@

$(OINC)/asm: $(OINC)/.dir
	@rm -f $@
	@ln -s ../stree/src/include/$(ARCH) $@

$(OINC)/kern/kconfig.h: $(OINC)/autoconf.h
	@rm -f $@
	@test -d $(dir $@) || $(INSTALL) -d $(dir $@)
	@cat $< | grep CONFIG_ | sed s/CONFIG/CONFIG_MOL/g > $@

local-includes: $(OINC)/asm $(OINC)/cpu $(OINC)/kern/kconfig.h
modules: bootstrap

#####################################################################

help:
	@printf "\nCONFIGURING:\n"
	@printf "  %-30s - %s\n" "make menuconfig" "change MOL settings"
	@printf "\nBUILDING:\n"
	@printf "  %-30s - %s\n" "make" "build MOL"
	@printf "  %-30s - %s\n" "make configure" "rerun configure script"
	@printf "  %-30s - %s\n" "make [dist]clean" "remove build products"
	@printf "  %-30s - %s\n" "make modules" "build only the kernel module(s)"
	@printf "  %-30s - %s\n" "./autogen.sh" "regenerate build files"
	@printf "\nINSTALL:\n"
	@printf "  %-30s - %s\n" "make install" "install MOL"
	@printf "  %-30s - %s\n" "make install-config" "install default config files"
	@printf "  %-30s - %s\n" "make install-modules" "install kernel modules (and nothing else)"
	@printf "  %-30s - %s\n" "make uninstall" "uninstall MOL"
	@printf "  %-30s - %s\n" "make uninstall-all" "uninstall everything (including config files)"
	@printf "  %-30s - %s\n" "make paths" "show install paths"
	@printf "\nBITKEEPER/RSYNC support:\n"
	@printf "  %-30s - %s\n" "make libimport" "download binary support files"
	@printf "  %-30s - %s\n" "make libpopulate" "use binary suport files in ./libimport"
	@printf "\nDISTRIBUTION:\n"
	@printf "  %-30s - %s\n" "make dist" "create tar archive"
	@printf "  %-30s - %s\n" "make rpms" "build all RPMs"
	@printf "  %-30s - %s\n" "make rpm" "build mol RPM"
	@printf "  %-30s - %s\n" "make kmods_rpm" "build kernel module RPM"
	@echo

#####################################################################

libimport:
	scripts/libimport import
libpopulate:
	scripts/libimport populate
libimport_dist:
	scripts/libimport import_dist
libdelete:
	scripts/libimport delete
libexport: clean
	scripts/libimport export
libimport_clean:
	$(RM) -rf libimport

.PHONY: libimport libpopulate libimport_dist libdelete libexport libimport_clean


#####################################################################

clean-local:
	@rm -rf $(mollib)/bin $(top_odir)/deps $(top_odir)/util $(top_odir)/src
distclean-local:
	@rm -rf mollib/modules

#####################################################################

include		$(rules)/Rules.make
include		Makefile.dist