diff options
| author | Sebastien Lugan <slugan@users.noreply.github.com> | 2004-02-12 16:07:03 +0000 |
|---|---|---|
| committer | Sebastien Lugan <slugan@users.noreply.github.com> | 2004-02-12 16:07:03 +0000 |
| commit | a9cede2d5e9fba3bfa0a8945020586c79e0a7437 (patch) | |
| tree | 962e353284e475ccc084690369da58a91fd86965 /libopenjpeg/Makefile | |
| parent | 64bef6ba0a8d01013df1a08798fc5f4daab85816 (diff) | |
Automatic creation of building directories during make
Diffstat (limited to 'libopenjpeg/Makefile')
| -rw-r--r-- | libopenjpeg/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libopenjpeg/Makefile b/libopenjpeg/Makefile index 63a5f322..4794d166 100644 --- a/libopenjpeg/Makefile +++ b/libopenjpeg/Makefile @@ -18,15 +18,23 @@ ifdef MINGW32 AR = i386-mingw32-ar OBJ_DIR = $(OBJ_DIR_W32) LIB_DIR = $(LIB_DIR_W32) - all: $(LIB_DIR)/libopenjpeg.a $(LIB_DIR)/libopenjpeg.dll + all: $(OBJ_DIR) $(LIB_DIR) \ + $(LIB_DIR)/libopenjpeg.a $(LIB_DIR)/libopenjpeg.dll else CC = gcc AR = ar OBJ_DIR = obj LIB_DIR = lib - all: $(LIB_DIR)/libopenjpeg.a $(LIB_DIR)/libopenjpeg.so + all: $(OBJ_DIR) $(LIB_DIR) \ + $(LIB_DIR)/libopenjpeg.a $(LIB_DIR)/libopenjpeg.so endif +$(OBJ_DIR): + mkdir $(OBJ_DIR) + +$(LIB_DIR): + mkdir $(LIB_DIR) + $(OBJ_DIR)/%.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $< |
