Browse Source

debug of the useless makefile

phyto 7 months ago
parent
commit
efa4604e3a
2 changed files with 8 additions and 8 deletions
  1. 7
    7
      Makefile
  2. 1
    1
      fake-values.c

+ 7
- 7
Makefile View File

@@ -2,18 +2,18 @@
2 2
 #	must be run with gnu make
3 3
 #
4 4
 
5
-CC = gcc
6
-
7
-CCOPT = -Wall -g 
5
+CC	= gcc
6
+CCOPT	= -Wall -g 
7
+CLIB	= core/libdd2m-core.a
8 8
 
9 9
 all:	essai fake-values
10 10
 
11 11
 # ---------------------------------------------
12 12
 
13
-essai:	essai.c  Makefile
14
-	gcc ${CCOPT} $< core/utils.o -o $@
13
+essai:	essai.c  Makefile $(CLIB)
14
+	$(CC) ${CCOPT} $< $(CLIB) -o $@
15 15
 
16
-fake-values:	fake-values.c  Makefile
17
-	gcc ${CCOPT} $< core/utils.o  -o $@
16
+fake-values:	fake-values.c  Makefile $(CLIB)
17
+	$(CC) ${CCOPT} $< $(CLIB)  -o $@
18 18
 
19 19
 # ---------------------------------------------

+ 1
- 1
fake-values.c View File

@@ -32,7 +32,7 @@ if (verbosity > 1) {
32 32
 	fprintf(stderr, "fake values - %s %s\n", __DATE__, __TIME__);
33 33
 	}
34 34
 
35
-printf("%.3f %d\n", dtime(), random1000(type));
35
+printf("%.3f %4d\n", dtime(), random1000(type));
36 36
 
37 37
 return 0;
38 38
 }

Loading…
Cancel
Save