forked from frodonh/scriptfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 874 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (36 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
CC=gcc
CINCFLAGS=
ifdef TRACE # Trace FUSE operations
CTRACEFLAGS=-DTRACE
else
CTRACEFLAGS=
endif
ifdef PROFILE
CPROFFLAGS=-p -pg
else
CPROFFLAGS=
endif
ifdef RELEASE
COPTFLAGS=-O3 -s
else
COPTFLAGS=-O0 -ggdb3 -Werror -Wall
endif
CFLAGS=$(CINCFLAGS) $(COPTFLAGS) $(CPROFFLAGS) $(CTRACEFLAGS) `pkg-config fuse --cflags`
LFLAGS=`pkg-config fuse --libs`
BIN=.
PROJECT=scriptfs
all:$(BIN)/$(PROJECT)
$(BIN)/$(PROJECT):$(PROJECT).c $(BIN)/procedures.o $(BIN)/operations.o
@echo --------------- Linking of executable ---------------
@$(CC) $(CFLAGS) -o $(BIN)/$(PROJECT) $^ $(LFLAGS)
$(BIN)/operations.o:operations.h
$(BIN)/procedures.o:procedures.h
$(BIN)/%.o:%.c %.h
@echo --------------- Compilation of $< ---------------
@$(CC) $(CFLAGS) -c -o $(BIN)/$@ $<
clean:
@rm *.o
doc:
@doxygen doxyconf
archive:
@tar -cvjf $(PROJECT).tar.bz2 *.c *.h Makefile