makefile 1001 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
  3. # All rights reserved.
  4. # This component and the accompanying materials are made available
  5. # under the terms of the License "Eclipse Public License v1.0"
  6. # which accompanies this distribution, and is available
  7. # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. #
  9. # Initial Contributors:
  10. # Nokia Corporation - initial contribution.
  11. #
  12. # Contributors:
  13. #
  14. # Description:
  15. #
  16. # caseless-fuse makefile
  17. #
  18. # run "make" or "make CFLAGS=-g -DDEBUG' to get debugging output
  19. # (mount with "-o debug" to see the output)
  20. CFLAGS=-g -O3 -Wall
  21. CC=gcc
  22. caseless-fuse: caseless-fuse.o hashtable.o filehandles.o pathcache.o
  23. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -ldl -lfuse
  24. test-hash: test_hash.o hashtable.o
  25. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  26. clean::
  27. -rm test-hash test_hash.o hashtable.o
  28. %.o: %.c
  29. $(CC) -c -o $@ -D_FILE_OFFSET_BITS=64 $(CFLAGS) $(LDFLAGS) $^
  30. clean::
  31. -rm caseless-fuse caseless-fuse.o filehandles.o pathcache.o