Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICS Control System Infrastructure
etherlabmaster
Commits
1af21d3a
Commit
1af21d3a
authored
19 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Makefiles nochmals verbessert.
parent
fd928a65
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+17
-12
17 additions, 12 deletions
Makefile
mini/Makefile
+3
-9
3 additions, 9 deletions
mini/Makefile
rt/Makefile
+32
-65
32 additions, 65 deletions
rt/Makefile
with
52 additions
and
86 deletions
Makefile
+
17
−
12
View file @
1af21d3a
#----------------------------------------------------------------
#----------------------------------------------------------------
--------------
#
#
# Globales Makefile
# Globales Makefile
#
#
...
@@ -6,27 +6,30 @@
...
@@ -6,27 +6,30 @@
#
#
# $Id$
# $Id$
#
#
#----------------------------------------------------------------
#----------------------------------------------------------------
--------------
CONFIG_FILE
=
ethercat.conf
ifneq
($(KERNELRELEASE),)
ifeq
($(CONFIG_FILE),$(wildcard $(CONFIG_FILE)))
#------------------------------------------------------------------------------
include
$(CONFIG_FILE)
# Kbuild-Abschnitt
endif
obj-m
:=
drivers/ mini/
obj-m
:=
drivers/
rt/
mini/
ifeq
($(MAKE_RT),yes)
#------------------------------------------------------------------------------
obj-m
+=
rt/
endif
#----------------------------------------------------------------
else
all
:
#------------------------------------------------------------------------------
# Default-Abschnitt
include
ethercat.conf
modules
:
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
`
pwd
`
modules
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
`
pwd
`
modules
clean
:
clean
:
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
`
pwd
`
clean
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
`
pwd
`
clean
rm
-rvf
*
/.tmp_versions
doc docs
:
doc docs
:
doxygen Doxyfile
doxygen Doxyfile
...
@@ -43,3 +46,5 @@ config conf $(CONFIG_FILE):
...
@@ -43,3 +46,5 @@ config conf $(CONFIG_FILE):
@
echo
"
$(
CONFIG_FILE
)
erstellt."
@
echo
"
$(
CONFIG_FILE
)
erstellt."
#----------------------------------------------------------------
#----------------------------------------------------------------
endif
This diff is collapsed.
Click to expand it.
mini/Makefile
+
3
−
9
View file @
1af21d3a
...
@@ -24,17 +24,11 @@ else
...
@@ -24,17 +24,11 @@ else
#----------------------------------------------------------------
#----------------------------------------------------------------
# Default-Abschnitt
# Default-Abschnitt
CONFIG_FILE
=
../ethercat.conf
modules
:
PWD
=
$(
shell
pwd
)
$(
MAKE
)
-C
..
include
$(CONFIG_FILE)
# Für KERNELDIR
default
:
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
$(
PWD
)
modules
clean
:
clean
:
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
$(
PWD
)
clean
$(
MAKE
)
-C
..
clean
#----------------------------------------------------------------
#----------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
rt/Makefile
+
32
−
65
View file @
1af21d3a
# Comment/uncomment the following line to disable/enable debugging
#------------------------------------------------------------------------------
#DEBUG = y
#
# Makefile Echtzeitmodule
#
# Add your debugging flag (or not) to CFLAGS
# $Id$
ifeq
($(DEBUG),y)
#
DEBFLAGS
=
-O
-g
-DSHORT_DEBUG
# "-O" is needed to expand inlines
#------------------------------------------------------------------------------
else
DEBFLAGS
=
-O2
endif
CFLAGS
+=
$(
DEBFLAGS
)
CFLAGS
+=
-I
..
RTLIB
=
/vol/projekte/msr_messen_steuern_regeln/linux/kernel_space/rt_lib-4.0.0-2.6krnl
#Suchpfad fr die Dateien aus dem RT-Lib-Verzeichnis
VPATH
:=
$(
RTLIB
)
/msr-core:
$(
RTLIB
)
/msr-control:
$(
RTLIB
)
/msr-hwdriver:
$(
RTLIB
)
/msr-math:
$(
RTLIB
)
/msr-misc:
$(
RTLIB
)
/msr-utils
#Datei aus dem RT-Libverzeichnis fr dies Projekt
RTSRC
:=
msr_main.o msr_lists.o msr_charbuf.o msr_reg.o msr_interpreter.o msr_utils.o msr_messages.o msr_functiongen.o msr_base64.o msr_watchdog.o msr_proc.o msr_error_reg.o
ifneq
($(KERNELRELEASE),)
ifneq
($(KERNELRELEASE),)
# call from kernel build system
EXTRA_CFLAGS
:=
-I
$(
RTLIB
)
/msr-include
-D_SIMULATION
-I
/usr/include
-mhard-float
#EXTRA_LDFLAGS := -L/usr/lib -lm
msr_modul-y
:=
msr_module.o
\
msr_jitter.o
\
rt_lib/msr-core/msr_lists.o
\
rt_lib/msr-core/msr_main.o
\
rt_lib/msr-core/msr_charbuf.o
\
rt_lib/msr-core/msr_reg.o
\
rt_lib/msr-core/msr_interpreter.o
\
rt_lib/msr-core/msr_messages.o
\
rt_lib/msr-core/msr_proc.o
\
rt_lib/msr-core/msr_error_reg.o
\
rt_lib/msr-utils/msr_utils.o
\
rt_lib/msr-math/msr_base64.o
\
libm.o
#------------------------------------------------------------------------------
# Kbuild-Abschnitt
obj-m
:=
msr_modul.o
obj-m
:=
msr_modul.o
msr_modul-objs
:=
msr_module.o
\
msr_jitter.o
\
rt_lib/msr-core/msr_lists.o
\
rt_lib/msr-core/msr_main.o
\
rt_lib/msr-core/msr_charbuf.o
\
rt_lib/msr-core/msr_reg.o
\
rt_lib/msr-core/msr_interpreter.o
\
rt_lib/msr-core/msr_messages.o
\
rt_lib/msr-core/msr_proc.o
\
rt_lib/msr-core/msr_error_reg.o
\
rt_lib/msr-utils/msr_utils.o
\
rt_lib/msr-math/msr_base64.o
\
libm.o
EXTRA_CFLAGS
:=
-I
$(
src
)
/rt_lib/msr-include
-D_SIMULATION
\
-I
/usr/include
-mhard-float
#------------------------------------------------------------------------------
else
else
#------------------------------------------------------------------------------
KERNELDIR
:=
/lib/modules/
$(
shell
uname
-r
)
/build
# Default-Abschnitt
PWD
:=
$(
shell
pwd
)
default
:
default
:
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
$(
PWD
)
modules
$(
MAKE
)
-C
..
endif
clean
:
clean
:
rm
-f
core .depend
$(
MAKE
)
-C
.. clean
rm
-rf
.tmp_versions
find
-L
-maxdepth
3
-name
"*.o"
-exec
rm
{}
\;
find
-L
-maxdepth
3
-name
"*~"
-exec
rm
{}
\;
find
-L
-maxdepth
3
-name
"*.cmd"
-exec
rm
{}
\;
find
-L
-maxdepth
3
-name
"*.ko"
-exec
rm
{}
\;
find
-L
-maxdepth
3
-name
"*.mod.c"
-exec
rm
{}
\;
depend .depend dep
:
$(
CC
)
$(
CFLAGS
)
-M
*
.c
>
.depend
#------------------------------------------------------------------------------
ifeq
(.depend,$(wildcard .depend))
include
.depend
endif
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment