]> granicus.if.org Git - curl/commitdiff
build: fix for MSDOS/djgpp
authorGisle Vanem <gvanem@yahoo.no>
Wed, 21 Oct 2015 16:59:43 +0000 (12:59 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 21 Oct 2015 17:00:52 +0000 (13:00 -0400)
- Add a VPATH-statement for the vtls/*.c files.

- Due to 'vtls/*.c', remove that subdir part from $(OBJECTS).

lib/makefile.dj

index 2313e5351b7380c9473620362820d19b2622baa5..a64dd78f4c41fba617b590e74f15d3b758ca2cc6 100644 (file)
 #
 
 DEPEND_PREREQ = curl_config.h
+VPATH  = vtls
 TOPDIR = ..
 
 include ../packages/DOS/common.dj
 include Makefile.inc
 
-OBJECTS := $(patsubst %.c,$(OBJ_DIR)/%.o,$(strip $(CSOURCES)))
+SOURCES = $(sort $(CSOURCES))
+OBJECTS = $(addprefix $(OBJ_DIR)/, $(notdir $(SOURCES:.c=.o)))
 
 CURL_LIB = libcurl.a