summaryrefslogtreecommitdiff
path: root/samples/Makefile.samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples/Makefile.samples')
-rw-r--r--samples/Makefile.samples8
1 files changed, 5 insertions, 3 deletions
diff --git a/samples/Makefile.samples b/samples/Makefile.samples
index 9122639..c91ee50 100644
--- a/samples/Makefile.samples
+++ b/samples/Makefile.samples
@@ -1,3 +1,5 @@
+TARGETS = helloworld hello recherche rechcara sommeentiers testtout boucle p4 cube
+
.o:
../src/linker $< $@
@@ -10,7 +12,7 @@
chmod 755 $@
rm tmp.o
-all: helloworld hello recherche rechcara sommeentiers testtout boucle p4 drawline cube trig allcube
+all: $(TARGETS)
helloworld: fichier1.s fichier2.s
../src/compilo fichier1.s fichier1.o
@@ -19,7 +21,7 @@ helloworld: fichier1.s fichier2.s
chmod 755 helloworld
rm fichier1.o fichier2.o
-allcube: cube.s trig.s drawline.s
+cube: cube.s trig.s drawline.s
../src/compilo cube.s cube.o
../src/compilo trig.s trig.o
../src/compilo drawline.s drawline.o
@@ -28,4 +30,4 @@ allcube: cube.s trig.s drawline.s
rm cube.o drawline.o trig.o
clean:
- rm -f helloworld recherche rechcara sommeenters testtout *.o __symbols__ __text__
+ rm -f $(TARGETS) *.o __symbols__ __text__ core