no order aim consoleio.c


in , i've found djgpp wholly accept dos management line impression limit. work around limitation, i've solid try makefile grant me . slight hacking together makefile contrast it, i've opposing uncanny error. makefile follows:



as  :=  nasm
cc := gcc
ld := ld

target := $(shell basename $(curdir))
build := build
sources := source

cflags := -wall -o -fstrength-reduce -fomit-frame-pointer -finline-functions \
-nostdinc -fno-builtin -i./include
asflags := -f aout

export cost := $(curdir)/$(target)

cfiles := $(foreach dir,$(sources),$(notdir $(wildcard $(dir)/*.c)))
sfiles := $(foreach dir,$(sources),$(notdir $(wildcard $(dir)/*.s)))

sobjs := $(sfiles:.s=.o)
cobjs := $(cfiles:.c=.o)
objs := $(sobjs) $(cobjs)

build : $(target).img

$(target).img : $(target).bin
concat.py

$(target).bin : $(objs)
$(ld) -t link.ld -o $@ $^

$(sobjs) : %.o : %.asm
$(as) $(asflags) $< -o $@

$(cobjs) : %.o : %.c
$(cc) -c $< $(cflags) -o $@


when attempting run it, i accept error:



make: *** order aim `consoleio.c', indispensable `consoleio.o'.  stop.


what i don't know since it's perplexing order .c files. i understand, record there, should only it. i make need order .c files?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members