Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
understanding makefile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
CAPACES Nicolas
understanding makefile
Commits
e7d0749f
Commit
e7d0749f
authored
1 year ago
by
CAPACES Nicolas
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefile
parent
b05d8258
Branches
main
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+2
-6
2 additions, 6 deletions
Makefile
with
2 additions
and
6 deletions
Makefile
+
2
−
6
View file @
e7d0749f
...
@@ -80,7 +80,7 @@ IINSTALL := $(IPATH)/$(ISRCS)
...
@@ -80,7 +80,7 @@ IINSTALL := $(IPATH)/$(ISRCS)
LINSTALL
:=
$(
LPATH
)
/
$(
LNAMES
)
LINSTALL
:=
$(
LPATH
)
/
$(
LNAMES
)
#pour éviter à ce que make soit confu si je met un fichier nommé "all", "clean" ou "totalClean" dans ce repertoire
#pour éviter à ce que make soit confu si je met un fichier nommé "all", "clean" ou "totalClean" dans ce repertoire
.PHONY
:
all clean unistall check
.PHONY
:
all clean uni
n
stall check
#les dependences sont executés de gauche à droite
#les dependences sont executés de gauche à droite
#il vérifie la dépendance la plus à gauche et vérifie ses dépendances. une fois satisfaites, il passe à la dépendance suivante.
#il vérifie la dépendance la plus à gauche et vérifie ses dépendances. une fois satisfaites, il passe à la dépendance suivante.
...
@@ -93,7 +93,7 @@ all: $(IINSTALL) $(LINSTALL) $(TARGETS)
...
@@ -93,7 +93,7 @@ all: $(IINSTALL) $(LINSTALL) $(TARGETS)
clean
:
clean
:
$(
RM
)
$(
OBJS
)
$(
LOBJS
)
$(
LTARGETS
)
$(
RM
)
$(
OBJS
)
$(
LOBJS
)
$(
LTARGETS
)
unistall
:
clean
uni
n
stall
:
clean
sudo
$(
RM
)
$(
LINSTALL
)
$(
LINSTALL
)
.
$(
VMAJ
)
$(
LINSTALL
)
.
$(
VMAJ
)
.
$(
VMIN
)
.
$(
VPAT
)
$(
IINSTALL
)
$(
TARGETS
)
sudo
$(
RM
)
$(
LINSTALL
)
$(
LINSTALL
)
.
$(
VMAJ
)
$(
LINSTALL
)
.
$(
VMAJ
)
.
$(
VMIN
)
.
$(
VPAT
)
$(
IINSTALL
)
$(
TARGETS
)
check
:
check
:
...
@@ -122,10 +122,6 @@ $(LINSTALL): $(LTARGETS)
...
@@ -122,10 +122,6 @@ $(LINSTALL): $(LTARGETS)
$(LTARGETS)
:
$(LOBJS)
$(LTARGETS)
:
$(LOBJS)
$(
CC
)
$(
CFLAGS
)
-shared
-Wl
,-soname,
$(
SONAMES
)
$<
-o
$@
$(
CC
)
$(
CFLAGS
)
-shared
-Wl
,-soname,
$(
SONAMES
)
$<
-o
$@
#la compilation fonctionne
#le programme ne fonctionne pas
#même apres: gcc -o test main.c base64.c
#./test ne donne pas le résultat voulu
$(TARGETS)
:
$(OBJS)
$(TARGETS)
:
$(OBJS)
$(
CC
)
$(
CFLAGS
)
$^
-o
$@
$(
MFLAGS
)
$(
CC
)
$(
CFLAGS
)
$^
-o
$@
$(
MFLAGS
)
...
...
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