Ensure output paths exist for compiled object files

Fixes build on clean checkout
unstable
James Lee 2012-02-18 11:42:27 -07:00
parent a0bbbb0b7d
commit 134b6c874f
1 changed files with 10 additions and 2 deletions

View File

@ -42,13 +42,21 @@ objects = \
all: ext_server_stdapi.so
output_dirs:
mkdir -p server/fs
mkdir -p server/net/config
mkdir -p server/net/socket
mkdir -p server/sys/config
mkdir -p server/sys/process
debug: CFLAGS+=-ggdb
debug: all
ext_server_stdapi.so: $(objects)
ext_server_stdapi.so: output_dirs $(objects)
$(CC) -Wl,--hash-style=sysv -shared $(CFLAGS) $(objects) -lpcap -lcrypto -o $@
.PHONY: clean debug
.PHONY: clean debug output_dirs
clean:
rm -f *.o *.so *~; rm -f $(objects)