GNU-Win32 Makefile: Dependencies

Sheetal Gangakhedkar
Wed Dec 9 17:40:00 GMT 1998

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

enc: Makefile
TARGET  = main.exe
SOURCES = main.c

%.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

distclean: clean
	$(RM) $(TARGET)


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

More information about the Cygwin mailing list