This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

GNU-Win32 Makefile: Dependencies


I want to run this makefile in the Cygnus GNU-Make win32 mode. I am encountering problems, I don't understand. 
This makefile runs fine in the UNIX mode and BASH shell environment.

Thank You
-Sheetal

enc: Makefile
-------------
TARGET  = main.exe
SOURCES = main.c
OBJECTS = $(SOURCES:.c=.o)

%.d: %.c
	$(SHELL) -ec '$(CC) -MM $(CPPFLAGS) $< \
	| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
	[ -s $@ ] || rm -f $@'

%.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

all: $(TARGET)

$(TARGET): main.o

clean: FORCE
	$(RM) $(OBJECTS)

distclean: clean
	$(RM) $(TARGET)

FORCE:

sinclude $(SOURCES:.c=.d)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]