Permalink
Browse files

Use variables for rm (in clean) and gcc (in test)

  • Loading branch information...
jmesmon committed Jan 25, 2012
1 parent a8295a1 commit aa7ee2e466f0b149e71ca83bef27c075a2ecc89d
Showing with 4 additions and 2 deletions.
  1. +4 −2 Makefile
View
@@ -7,6 +7,8 @@ PBKDF_BACKEND?=openssl
# system compiler, normally gcc
CC?=gcc
+RM?=rm -f
+
# whether to enable debugging or not
DEBUG?=no
@@ -60,7 +62,7 @@ lib:
$(CC) -shared -Wl,-version-script=tcplay.map -o libtcplay.so tcplay_api.o $(OBJS)
test:
- gcc -O0 -g -L. -I. tcplay_api_test.c -ltcplay -lcrypto -ldm -lprop
+ $(CC) -O0 -g -L. -I. tcplay_api_test.c -ltcplay -lcrypto -ldm -lprop
clean:
- rm -f tcplay libtcplay.so tcplay.core *.o ktrace.out
+ $(RM) tcplay libtcplay.so tcplay.core *.o ktrace.out

0 comments on commit aa7ee2e

Please sign in to comment.