Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
aleber02
Agreg Tp2
Commits
22b38f2b
Commit
22b38f2b
authored
Sep 12, 2022
by
Adrien Le Berre
Browse files
fin de TP
parent
1872a8cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
22b38f2b
EXEC
=
test
EXEC
=
test
_bin
HMLIB
=
hm.so
SRCDIR
=
src
EXDIR
=
examples
...
...
@@ -32,11 +32,13 @@ FTR=$(BFILES:./$(BINDIR)/%=%.ftr)
.SECONDARY
:
$(OHMFILES) $(OFILES)
.PHONY
:
create clean mrproper all
exec
:
Generating
\
$(EXEC)
\
binaries.echo $(EXEC)
heap
:
Generating
\
HM
\
binairies.echo $(HMLIB)
all
:
create exec test
tp2
all
:
create exec test
test
:
Generating
\
test
\
binaries.echo $(TESTS) $(CTESTFILES)
...
...
@@ -64,8 +66,6 @@ depend : done.done
done.done
:
$(ECHO)
"
\0
33[31;01mGenerating project depandancies
$*
\0
33[00m"
@
touch
done
.done
.PHONY
:
create clean mrproper
clean
:
Removing
\
files.echo $(CLEANFILES)
...
...
src/main.c
View file @
22b38f2b
...
...
@@ -2,6 +2,9 @@
#include
"add.h"
int
main
(
int
argc
,
char
*
argv
[]){
if
(
argc
==
0
){
return
-
1
;
}
puts
(
"Bonjour !"
);
printf
(
"Exécutable lancé depuis la commande : %s
\n
"
,
argv
[
0
]);
int
x
=
17
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment