From 134b6c874fcb363594103f082bc2bacf8a0bd2c7 Mon Sep 17 00:00:00 2001 From: James Lee Date: Sat, 18 Feb 2012 11:42:27 -0700 Subject: [PATCH] Ensure output paths exist for compiled object files Fixes build on clean checkout --- .../meterpreter/workspace/ext_server_stdapi/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/external/source/meterpreter/workspace/ext_server_stdapi/Makefile b/external/source/meterpreter/workspace/ext_server_stdapi/Makefile index adb91ef1a0..0b39132aef 100644 --- a/external/source/meterpreter/workspace/ext_server_stdapi/Makefile +++ b/external/source/meterpreter/workspace/ext_server_stdapi/Makefile @@ -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) +