Makefile
changeset 81 0a0cd7fb0208
parent 74 a4a5066fb640
child 86 934663982ca9
equal deleted inserted replaced
80:e0f3c372cb9d 81:0a0cd7fb0208
   154 
   154 
   155 #-----------------------------------------------------------------------------#
   155 #-----------------------------------------------------------------------------#
   156 # Source and target names.
   156 # Source and target names.
   157 #-----------------------------------------------------------------------------#
   157 #-----------------------------------------------------------------------------#
   158 
   158 
   159 BASELIBNAME := physfs
   159 PUREBASELIBNAME := physfs
   160 ifneq ($(strip $(cygwin)),true)
   160 ifeq ($(strip $(cygwin)),true)
   161 BASELIBNAME := lib$(strip $(BASELIBNAME))
   161 BASELIBNAME := $(strip $(PUREBASELIBNAME))
       
   162 else
       
   163 BASELIBNAME := lib$(strip $(PUREBASELIBNAME))
   162 endif
   164 endif
   163 
   165 
   164 MAINLIB := $(BINDIR)/$(strip $(BASELIBNAME))$(strip $(LIB_EXT))
   166 MAINLIB := $(BINDIR)/$(strip $(BASELIBNAME))$(strip $(LIB_EXT))
   165 
   167 
   166 TESTSRCS := test/test_physfs.c
   168 TESTSRCS := test/test_physfs.c
   235 
   237 
   236 $(MAINLIB) : $(BINDIR) $(MAINOBJS)
   238 $(MAINLIB) : $(BINDIR) $(MAINOBJS)
   237 	$(LINKER) -o $(MAINLIB) $(LDFLAGS) $(SHAREDFLAGS) $(MAINOBJS)
   239 	$(LINKER) -o $(MAINLIB) $(LDFLAGS) $(SHAREDFLAGS) $(MAINOBJS)
   238 
   240 
   239 $(TESTEXE) : $(MAINLIB) $(TESTOBJS)
   241 $(TESTEXE) : $(MAINLIB) $(TESTOBJS)
   240 	$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTLDFLAGS) $(TESTOBJS) $(MAINLIB)
   242 	$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTLDFLAGS) $(TESTOBJS) -L$(BINDIR) -l$(strip $(PUREBASELIBNAME))
   241 
   243 
   242 
   244 
   243 install: all
   245 install: all
   244 	mkdir -p $(install_prefix)/bin
   246 	mkdir -p $(install_prefix)/bin
   245 	mkdir -p $(install_prefix)/lib
   247 	mkdir -p $(install_prefix)/lib