[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to Make Archive
From: |
Ajay Jain |
Subject: |
How to Make Archive |
Date: |
Tue, 5 Apr 2011 18:53:07 +0530 |
Hi,
I am facing some issues while making an archive. I have an exhaustive
build system consisting of various modules and sub-modules. In one
common rules file, I have defined a rule as :
%.o : %.c
@$(ECHO) "\nCOMPILING $< \n"
$(CC) $(CFLAGS) -c $< -o $@
This helps me to make .o. Now I have to archive my .o files.
%.a : ALL OBJECT FILES
@$(ECHO) "\nBUILDING $@ \n"
$(AR) $(ARFLAGS) $@ $^
Any clue? What GENERAL rule can I write? Please note that I have to
write my own rule.
Regards,
Ajay.
- How to Make Archive,
Ajay Jain <=