issue with making datlib

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
I.M. Weasel
Iron Muskateer Weasel
Posts: 2780
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Fri Jan 04, 2002 4:45 am
Location: The city of the future, Los Braingeles
Has thanked: 1 time
Been thanked: 3 times
Contact:

issue with making datlib

Post by I.M. Weasel »

I'm running into an issue making datlib236 on my mac.

http://www.logiqx.com/Tools/DatLib/

Here is the error:

Code: Select all

make: *** no rule to make target '/Users/MAC/logiqx/dev/datlib/src/datlib.c', needed by '/Users/MAC/logiqx/dev/datlib/obj/datlib.o'. Stop.
Running make from ~/logiqx/ . Followed all directions in the 'readme.txt', including making a path for it. There are what looks like all the required '.c' files in the src diretory.

Specs:
OS X 10.6.8
gcc 4.2.1
zlib 1.2.8 installed

Heres a snippet from the makefile (this is only the first half-the relevant part):

Code: Select all

#
# The makefile that builds the dat library
#

MD=mkdir

CC=@gcc
CFLAGS+=-Wall -O3 -I $(LOGIQX)/dev

LD=@gcc
LIBS+=-lz -lm

UPX=@upx -9

DLSRC=$(LOGIQX)/dev/datlib/src

DLINCS=	$(DLSRC)/macro.h \
	$(DLSRC)/type.h \
	$(DLSRC)/token.h \

DLOBJ=$(LOGIQX)/dev/datlib/obj

DLOBJDIRS=$(DLOBJ) \
	$(DLOBJ)/drv \
	$(DLOBJ)/hash \
	$(DLOBJ)/misc \
	$(DLOBJ)/mame \
	$(DLOBJ)/mame/msdos \

DLOBJS=	$(DLOBJ)/datlib.o \
	$(DLOBJ)/driver.o \
	$(DLOBJ)/token.o \
	$(DLOBJ)/misc/getopt.o \
	$(DLOBJ)/hash/md5.o \
	$(DLOBJ)/hash/sha1.o \
	$(patsubst $(DLSRC)/drv/%.c, $(DLOBJ)/drv/%.o, \
		$(wildcard $(DLSRC)/drv/*.c)) \
	$(DLOBJ)/mame/msdos/msdos.o \
	$(DLOBJ)/mame/unzip.o
Seems to go bad at the pattern substitution part. Looked online and not coming up with any good answers.
:arrow: http://tofuheavyindustries.com
Mac Dream Tool / Mac Dream Tool Services (released Sept. 2019)
Creator of Various awesome Video Games

"You don't have to be forgiven. Clint Eastwood taught us that."
Post Reply