Makefile - how change implicit building rule

From: yoonsoo (y00ns00_at_gmx.net)
Date: 06/26/04


Date: Sat, 26 Jun 2004 22:15:15 +0200

Hi,

I have the following little problem:

in my makefile I have

------Makefile------------------
%.o: %.cc
   $(CXX) -c -MD $(INCL_DIR) $(CXXFLAGS) $(O_FLAG) $< -o $@
----------------------------

which is allright for nearly all files but not for 4 files,which I want
to compile without the optimization flag.

Actually I do it like this:

----Makefile-------------
handleobjs:
  $(CXX) -c -MD $(INCL_DIR) $(CXXFLAGS) htrap.cc -o htrap.o
  $(CXX) -c -MD $(INCL_DIR) $(CXXFLAGS) hkit.cc -o hkit.o
  $(CXX) -c -MD $(INCL_DIR) $(CXXFLAGS) hsupp.cc -o hsupp.o
  $(CC) -c -MD $(INCL_DIR) $(CFLAGS) hlow.c -o hlow.o
-------------------------

How can I change the implicit building rule for the cc(c) files, so I
can change it to a simple

----Makefile-----------------
handleobjs: $(HANDLEOBJS)
-----------------------------

thx and greets

yoon