How to create a top level makefile
Hello everybody...
This is the directory structure of my Main folder, for which i need to write a top level makefile $> ls /home/rah/MAIN AF/ Middleware/ Platform/ Tools/-->toolchain_2.8.0/-->(bin/,include/,man/,lib/,usr/,share/,doc/,uclibc/) Utils/ So the problem is that i need to write a top level makefile(which will reside in MAIN) and also i need to generate a ncurses based menu for compiling it. All the Af,MW,platform,tools and utils directories have their makefiles ready.Now i need to write a top level makefile to link them all and also a ncurses based menu. pls help me on this,its really urgent. Thank you all |
For ncurses, you're on your own but here's what a top-level Makefile would look like:
Code:
MAKEFILE = Makefile Code:
build: |
Thank you very much tronayne.
Ill check if it works fine, but that was a very decent and clean reply from your side. Thanx again |
Hey guys this is what my dir structure looks like :
trav@localhost]$ ls ~/Main AF/ Mware/ Platform/ Tools/ Utils/ The directory listing below, is an expansion of Mware. [HTML] MAIN/-- MWARE/-- Lib/ Miniapps/ Modules/-- dvdaudio/-- Makefile dvdvideo/-- Makefile gfxlibrary/-- Makefile Keyboard/-- localkeyboard.c remote/-- localremote.c localremote.h dvdaudioapi/-- include/ Makefile dvdaudioapi.cpp dvdaudioapi.d dvdvideoapi/-- include/ Makefile dvdvideoapi.cpp dvdvideoapi.d Obj/ Thirdparty/-- Applications/-- include/-- dvdlocal.h dvdaudio.h dvdtypes.h vcdtypes.h vcdaudio.h Lib/-- librmdisc.so librmdvdfs.so librmdvdvideonav.so librmvcdnav.so Makefile Modules/-- Module1/-- Application/-- include/-- src/-- Module2/-- Application/-- include/-- src/-- Module3/-- Application/-- include/-- src/-- Module4/-- Application/-- include/-- src/-- [/HTML] dvdvideoapi.d file contains this code --(rmdvdvideoapi.o rmdvdvideoapi.d: Makefile rmdvdvideoapi.cpp rmdef.h rmdvdvideoapi.h\ rmdvdvideonav.h ) So the problem now is that i need to write a top level makefile that resides in Main/Mware/ and removes the .d (dependency) files and instead cretaes .so and .o files, while also taking care of the lower level makefiles. Please ,help, im stuck again. thanx |
All times are GMT -5. The time now is 08:37 AM. |