Browse Source

Makefile cleaning

Use $^ instead of explicitely listing .c files in recipe.
master
Thomas Preud'homme 7 years ago
parent
commit
d75a8ea2a1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Makefile

+ 1
- 1
Makefile View File

@@ -28,7 +28,7 @@ MANDIR := $(DESTDIR)$(MANDIR)
28 28
 
29 29
 
30 30
 pstack : pstack.c
31
-	$(CC) $(CPPFLAGS) $(CFLAGS) -o pstack pstack.c $(LDFLAGS)
31
+	$(CC) $(CPPFLAGS) $(CFLAGS) -o pstack $^ $(LDFLAGS)
32 32
 
33 33
 clean:
34 34
 	rm -f pstack

Loading…
Cancel
Save