[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with recompiling, when changing header files in C
From: |
Peter Biechele |
Subject: |
Problems with recompiling, when changing header files in C |
Date: |
Fri, 9 Mar 2001 16:49:44 +0100 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have the following problem, when I compile a C Program:
I create dependencies using .d files automatically uisng the gcc -M feature
I include the so created .d files using:
-include $(C_SRC_FILES:.c=.d)
-include $(ASS_SRC_FILES:.ss=.d)
Then if I change one of the c files everything works great.
BUT if I change one of the header files, nothing gets recompiled !!!!!
One of the .d files looks for example like this:
- -------------------
modTask.o modTask.d : aufsicht/modTask.c \
include/hwdefs.h
- -------------------
If I change the file include/hwdefs.h, NOTHING gets recompiled !!!!
I use rules like:
- ----------------
## Rules to make the object files
##
%.o : %.c $(ALL_MAKEFILES)
@echo " **** Compiling file $< "
$(CC) -c $(CFLAGS) $< -o $(OBJECT_DIR)/$(notdir $@)
%.o : %.ss $(ALL_MAKEFILES)
@echo " **** Compiling file $< "
$(CC) -c $(CFLAGS) $< -o $(OBJECT_DIR)/$(notdir $@)
- -----------------------
Can somebody tell me my mistake ???
Thank you very much !!!
Peter Biechele
Germany
- --
#####################################################
Dr. Peter Biechele, E-Mail: address@hidden
beXtec GmbH, Kaiserstuhlstr. 3, 79312 Emmendingen
Tel.: +49 7641 920869 41, Fax: +49 7641 920869 49
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6qPuYkveh9aGZ5GcRAmiaAJ4q1mK/tz/dmyxote21rFFWI7BJ8ACfaEH4
KkOqCoC3X+s6DeJP1FqKj5A=
=1y3d
-----END PGP SIGNATURE-----
- Problems with recompiling, when changing header files in C,
Peter Biechele <=