summaryrefslogtreecommitdiff
path: root/examples/VFS/Makefile
blob: ac5a93b49ba814557ef67946de45c95ef21131aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS		= 
CPPFLAGS	=
LDFLAGS		=
LDSHFLAGS	= -shared
srcdir		= ../../source/
FLAGS		=  $(CFLAGS) -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper  -I. $(CPPFLAGS) -I$(srcdir)

# Auto target
default: $(patsubst %.c,%.so,$(wildcard *.c))

# Pattern rules

%.so: %.o
	$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<

%.o: %.c
	$(CC) $(FLAGS) -c $<

# Misc targets

clean:
	rm -rf .libs
	rm -f core *~ *% *.bak *.o *.so