LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2008, 01:34 PM   #1
mflorea
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
gmake: makedepend: Command not found


First message on the forum
New in the Linux word

Using VMwere CentOS for RedHat

I have a Makefile
----------------
depend:
makedepend $(CXX_FILES)
# DO NOT DELETE THIS LINE -- make depend depends on it.
------------------------

When I do:
gmake makedepend

I got:
gmake:makedend:Comand not found.

This works on my home other Linux RedHat Enterprise.

Need help
Thank you
Michael,
 
Old 06-02-2008, 02:08 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
This message implies gmake is not installed or is not installed in your system PATH. If you type:
which gmake

It will point you towards the full path if one exists. You may just need to install the development tools for your distribution.

-Chad
 
Old 06-02-2008, 02:31 PM   #3
mflorea
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
gmake is there: makedepend looks that is not there

$ which gmake
$ /usr/bin/gmake
In my Makefile I am refering to depend:

here is the complete Makefile
It looks that gmake canot find makedepend.
I don't know where to get it or which packet.
------------------------------------
SYSTEMC =/usr/local/systemc-2.2
CXX = g++
INCL_PATH = -I$(SYSTEMC)/include
CXXFLAGS = -g $(INCL_PATH) -Wno-deprecated
## LIBS = -L$(SYSTEMC)/lib -linux -lsystemc -lm
LIBS = -L$(SYSTEMC)/lib -linux -lsystemc
H_FILES = \
simple_bus.h \
simple_bus_arbiter.h \
simple_bus_arbiter_if.h \
simple_bus_blocking_if.h \
simple_bus_direct_if.h \
simple_bus_fast_mem.h \
simple_bus_master_blocking.h \
simple_bus_master_direct.h \
simple_bus_master_non_blocking.h \
simple_bus_non_blocking_if.h \
simple_bus_request.h \
simple_bus_slave_if.h \
simple_bus_slow_mem.h \
simple_bus_test.h \
simple_bus_types.h

CXX_FILES = \
simple_bus.cpp \
simple_bus_arbiter.cpp \
simple_bus_main.cpp \
simple_bus_master_blocking.cpp \
simple_bus_master_direct.cpp \
simple_bus_master_non_blocking.cpp \
simple_bus_types.cpp \
simple_bus_tools.cpp

LIB_OBJECTS := $(addsuffix .o, $(basename $(CXX_FILES)))

###############################################################################################
###
help:
@echo "######################"
@echo "# compil : Compilation"
@echo "# clean : Clean"
@echo "######################"

############################
## COMPILATION
############################

compil: tb

$(LIB_OBJECTS): $(CXX_FILES) depend
$(CXX) $(CXXFLAGS) -c $< -o $@


tb: $(LIB_OBJECTS)
$(CXX) -o tb $(LIB_OBJECTS) $(LIBS)

############################
## --> Clean
############################
clean:
rm -rf tb
rm -rf *.o

.PHONY: compil clean

############################
## EMULATION
############################

depend:
makedepend $(CXX_FILES)
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
Old 06-02-2008, 03:38 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The missing package is xorg-x11-devel
makedepend is part of xorg (like imake etc.) but in most distros
makedepend is a separate package.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
makedepend nano2 Solaris / OpenSolaris 0 05-22-2007 08:39 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
makedepend yhus Linux - Software 2 07-12-2006 06:18 PM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
Makedepend help benjie_asu Linux - General 1 12-09-2005 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration