Web lists-archives.com

[Mingw-users] object not compiling




First the code snippet:
$(version): TARGET_OBJECTS+= $(O)$@.o
$(version): SOURCES+= $(S)$@.c
$(version): COMPILE_BIN=$(CC) $(TARGET_LIBS) $(Fc) $(TARGET_OBJECTS) $(Fo)
$(version): paths $(TARGET_OBJECTS); $(COMPILE_BIN) "$($@_OUT)"
    @echo VERSION_BUILD=$(VERSION_BUILD)
    @echo VERSION_MINOR=$(VERSION_MINOR)
    @echo VERSION_MAJOR=$(VERSION_MAJOR)
    @echo TARGET_OUT=$($@_OUT)
    @echo TARGET_OBJECTS=$(TARGET_OBJECTS)
    echo:$(TARGET_LARGE)_VERSION_BUILD=$(VERSION_NEXT_BUILD) > $(VMK)
    echo:$(TARGET_LARGE)_VERSION_MINOR=$(VERSION_NEXT_MINOR) >> $(VMK)
    echo:$(TARGET_LARGE)_VERSION_MAJOR=$(VERSION_NEXT_MAJOR) >> $(VMK)

# General linker files
$(O)CoditFileobj%.o: TARGET_HEADERS=$(FILEOBJ_H)
$(O)CoditFilelst%.o $(O)CoditFileent%.o: TARGET_HEADERS=$(FILELST_H)
$(O)CoditProcobj%.o: TARGET_HEADERS=$(PROCOBJ_H)
$(O)CoditProclst%.o $(O)CoditProcent%.o: TARGET_HEADERS=$(PROCLST_H)
# Target specific linker files
$(O)user.o $(O)test.o: TARGET_HEADERS=$(PROCLST_H)

# Produce linker files
$(O)%.o: $(S)%.c $(TARGET_HEADERS)
    $(CC) $(CFLAGS) $(VDEFS) $(Fc) "$<" $(Fo) "$@"

The problem I'm having is that the final object file that should be compiled is being ignored for some reason, it does Codit*.o just fine but when it gets to the target specific like test.o or user.o it just doesn't compile it and as a result the executable won't compile since the object file doesn't exist. Can anybody help me understand what is going wrong here?
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe