git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CFLAGS usage
@ 2005-11-04 15:21 Morten Welinder
  2005-11-04 16:59 ` David Brown
  2005-11-04 17:45 ` Junio C Hamano
  0 siblings, 2 replies; 6+ messages in thread
From: Morten Welinder @ 2005-11-04 15:21 UTC (permalink / raw)
  To: GIT Mailing List

Various stuff is being added to CFLAGS, but CFLAGS is not being used
after being composed in CFLAGS_ALL.

Morten



grep CFLAGS Makefile
CFLAGS = -g -O2 -Wall
ALL_CFLAGS = $(CFLAGS) $(PLATFORM_DEFINES) $(DEFINES)
                CFLAGS += -I$(CURLDIR)/include
                CFLAGS += -I$(OPENSSLDIR)/include
                CFLAGS += -I$(ICONVDIR)/include
        $(CC) -o $*.o -c $(ALL_CFLAGS) $<
        $(CC) -o $*.o -c $(ALL_CFLAGS) $<
        $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
        $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIB_FILE) $(SIMPLE_LIB)
        $(CC) -c $(ALL_CFLAGS) \
        $(CC) $(ALL_CFLAGS) -o $@ test-date.c date.o ctype.o
        $(CC) $(ALL_CFLAGS) -o $@ $^
        for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i; done

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-05  7:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-04 15:21 CFLAGS usage Morten Welinder
2005-11-04 16:59 ` David Brown
2005-11-04 17:45 ` Junio C Hamano
2005-11-04 18:23   ` David Brown
2005-11-04 18:47     ` Junio C Hamano
2005-11-05  7:57       ` [PATCH] Simplify CFLAGS/DEFINES in Makefile Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).