generalize makefile
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 14 May 2022 23:00:14 +0000 (19:00 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sat, 14 May 2022 23:00:14 +0000 (19:00 -0400)
idmap-tests/Makefile

index 8227b2a5dbda132a9068739ed4dc52bdc0bf6121..8de8157c8e73e6196ed6687bd739ccdf9fcfe1e4 100644 (file)
@@ -1,4 +1,7 @@
-mount-idmapped:
-       gcc mount-idmapped.c -o mount-idmapped
+CC=gcc
+
+mount-idmapped: mount-idmapped.c
+       $(CC) $< -o $@
+
 test: mount-idmapped
        sh test.sh