delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/09/23:10:49

From: sheetal AT vsisinc DOT com (Sheetal Gangakhedkar)
Subject: GNU-Win32 Makefile: Dependencies
9 Dec 1998 23:10:49 -0800 :
Message-ID: <19981210014031.15311.qmail.cygnus.gnu-win32@findmail.com>
To: gnu-win32 AT cygnus DOT com
Cc: sheetal AT vsisinc DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019