Advertisement
CSenshi

OS - FUSE (Makefile)

Jul 7th, 2019
957
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.66 KB | None | 0 0
  1. CC=gcc
  2. COMPILE_FLAGS=-c
  3. EXEC_FILE_FS=cachefs
  4. LIB=`pkg-config fuse3 --cflags --libs`
  5.  
  6. all: cachefs.o memcached.o filesys.o dir.o utils.o chunk.o
  7.     $(CC) cachefs.o memcached.o filesys.o dir.o utils.o chunk.o debug.h -o $(EXEC_FILE_FS) $(LIB)
  8.  
  9. cachefs.o: cachefs.c
  10.     $(CC) $(COMPILE_FLAGS) cachefs.c $(LIB)
  11.  
  12. memcached.o: memcached.c
  13.     $(CC) $(COMPILE_FLAGS) memcached.c
  14.  
  15. filesys.o: filesys.c
  16.     $(CC) $(COMPILE_FLAGS) filesys.c $(LIB)
  17.  
  18. file.o: file.c
  19.     $(CC) $(COMPILE_FLAGS) file.c
  20.  
  21. dir.o: dir.c
  22.     $(CC) $(COMPILE_FLAGS) dir.c
  23.  
  24. utils.o: utils.c
  25.     $(CC) $(COMPILE_FLAGS) utils.c
  26.  
  27. chunk.o: chunk.c
  28.     $(CC) $(COMPILE_FLAGS) chunk.c
  29.  
  30. clean:
  31.     rm *.o $(EXEC_FILE_FS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement