sqlite3.o no longer depends on serval.h for faster recompiles

when changing serval.h
This commit is contained in:
gardners 2012-04-20 17:10:38 +09:30
parent d843e59bd5
commit 788cef0201

View File

@ -17,14 +17,17 @@ DEFS= @DEFS@
all: serval.c dna libservald.so
sqlite3.o: sqlite3.c
$(CC) $(CFLAGS) $(DEFS) -Wall -c $<
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) $(DEFS) -Os -g -Wall -c $<
$(CC) $(CFLAGS) $(DEFS) -Wall -c $<
dna: $(OBJS)
$(CC) $(CFLAGS) -Os -g -Wall -o $@ $(OBJS) $(LDFLAGS)
$(CC) $(CFLAGS) -Wall -o $@ $(OBJS) $(LDFLAGS)
libservald.so: $(OBJS)
$(CC) $(CFLAGS) -Os -g -Wall -shared -o $@ $(OBJS) $(LDFLAGS)
$(CC) $(CFLAGS) -Wall -shared -o $@ $(OBJS) $(LDFLAGS)
serval.c: $(SRCS) $(HDRS)
cat serval.h > serval.c