<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Fmake%2FExamples</id>
	<title>Linux/make/Examples - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Fmake%2FExamples"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/make/Examples&amp;action=history"/>
	<updated>2026-05-09T03:48:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/make/Examples&amp;diff=665&amp;oldid=prev</id>
		<title>Kenneth: Kenneth moved page Make/Examples to Linux/make/Examples without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/make/Examples&amp;diff=665&amp;oldid=prev"/>
		<updated>2014-08-11T02:07:59Z</updated>

		<summary type="html">&lt;p&gt;Kenneth moved page &lt;a href=&quot;/index.php?title=Make/Examples&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Make/Examples (page does not exist)&quot;&gt;Make/Examples&lt;/a&gt; to &lt;a href=&quot;/Linux/make/Examples&quot; title=&quot;Linux/make/Examples&quot;&gt;Linux/make/Examples&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Linux PKI Makefile ==&lt;br /&gt;
&lt;br /&gt;
See [[Linux/make/Linux PKI Makefile]]&lt;br /&gt;
&lt;br /&gt;
== Makefile Tutorial by Example Advanced Makefile ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CC=g++&lt;br /&gt;
CFLAGS=-c -Wall&lt;br /&gt;
LDFLAGS=&lt;br /&gt;
SOURCES=main.cpp hello.cpp factorial.cpp&lt;br /&gt;
OBJECTS=$(SOURCES:.cpp=.o)&lt;br /&gt;
EXECUTABLE=hello&lt;br /&gt;
&lt;br /&gt;
all: $(SOURCES) $(EXECUTABLE)&lt;br /&gt;
	&lt;br /&gt;
$(EXECUTABLE): $(OBJECTS) &lt;br /&gt;
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@&lt;br /&gt;
&lt;br /&gt;
.cpp.o:&lt;br /&gt;
	$(CC) $(CFLAGS) $&amp;lt; -o $@&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source: http://mrbook.org/tutorials/make/&lt;br /&gt;
&lt;br /&gt;
== Hitachi Five FC HBA Kernel Module ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# Makefile&lt;br /&gt;
#&lt;br /&gt;
# Copyright (C) 2007, Hitachi, Ltd.&lt;br /&gt;
# Author(s): Yoshihiro Toyohara &amp;lt;yoshihiro.toyohara.qs@hitachi.com&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# $Id: Makefile,v 1.20.2.1.2.1.2.4 2008/09/19 07:37:47 eteshima Exp $&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
HOSTTYPE := $(shell uname -m)&lt;br /&gt;
OSVER := $(shell uname -r)&lt;br /&gt;
&lt;br /&gt;
EXTRA_CFLAGS := -D_LINUX_COM -D__LINUX -DHFC_ENHANCED -DHFC_NON_HOTPLUG&lt;br /&gt;
&lt;br /&gt;
HOSTTYPE := $(shell uname -m)&lt;br /&gt;
ifeq ($(HOSTTYPE),ia64)&lt;br /&gt;
	EXTRA_CFLAGS += -DHFC_IA64_AS4&lt;br /&gt;
endif&lt;br /&gt;
ifeq ($(HOSTTYPE),i686)&lt;br /&gt;
	EXTRA_CFLAGS += -DHFC_IA32_AS4&lt;br /&gt;
endif&lt;br /&gt;
ifeq ($(HOSTTYPE),x86_64)&lt;br /&gt;
	EXTRA_CFLAGS += -DHFC_X8664_AS4&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
MODS = hraslog_link.ko hfcldd_conf.ko hfcldd.ko&lt;br /&gt;
OBJS = hraslog_link.o hfcldd_conf.o hfcldd.o&lt;br /&gt;
TARGET = $(MODS)&lt;br /&gt;
&lt;br /&gt;
.PHONY: allup&lt;br /&gt;
&lt;br /&gt;
all : hraslog_linkup hfcldd_confup hfclddup moveup&lt;br /&gt;
&lt;br /&gt;
allup : hraslog_linkup hfcldd_confup hfclddup moveup&lt;br /&gt;
&lt;br /&gt;
hraslog_linkup : hraslog_link.c&lt;br /&gt;
	make -C /lib/modules/$(OSVER)/build M=`pwd` V=1 modules  &amp;gt;&amp;gt; result.log  2&amp;gt;&amp;gt; result.log&lt;br /&gt;
&lt;br /&gt;
hfcldd_confup : hfcldd_conf.c&lt;br /&gt;
	make -C /lib/modules/$(OSVER)/build M=`pwd` V=1 modules  &amp;gt;&amp;gt; result.log  2&amp;gt;&amp;gt; result.log&lt;br /&gt;
&lt;br /&gt;
hfclddup : hfcl_conf.c hfcl_detect.c hfcl_handler.c hfcl_diag.c hfcl_strategy.c hfcl_timer_recovery.c \&lt;br /&gt;
	hfcl_top.c hfcl_ioctl.c hfcl_version.c hfcl_mlpf.c&lt;br /&gt;
	make -C /lib/modules/$(OSVER)/build M=`pwd` V=1 modules  &amp;gt;&amp;gt; result.log  2&amp;gt;&amp;gt; result.log&lt;br /&gt;
&lt;br /&gt;
moveup :&lt;br /&gt;
	mkdir -p    $(OSVER)&lt;br /&gt;
	mv ./*.o    $(OSVER)/&lt;br /&gt;
	mv ./*.ko   $(OSVER)/&lt;br /&gt;
	mv ./.*.cmd $(OSVER)/&lt;br /&gt;
	mv ./*.log  $(OSVER)/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
clean :&lt;br /&gt;
#	make -C /lib/modules/$(OSVER)/build M=`pwd` V=1 clean&lt;br /&gt;
	rm -rf $(OSVER)&lt;br /&gt;
&lt;br /&gt;
obj-m:= $(OBJS)&lt;br /&gt;
&lt;br /&gt;
hfcldd-objs := hfcl_conf.o hfcl_detect.o hfcl_handler.o hfcl_diag.o hfcl_strategy.o hfcl_timer_recovery.o \&lt;br /&gt;
hfcl_top.o hfcl_ioctl.o hfcl_version.o hfcl_mlpf.o&lt;br /&gt;
&lt;br /&gt;
clean-files := *.o *.ko *.mod.[co]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>