LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 12-29-2006, 12:48 AM   #1
yogeshk@redim.net
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 0
Makefile in freebsd will work in redhat9.0 linux


// THIS IS MY PROJECT MAKE FILE FOR THE BLACKJACK ..THIS RUNNING IN
FREEBSD 4.11

NOW THIS PROJECT IS IN UPDATING IN REDHAT9.0 , FOR THAT WHAT ARE THE
CHANGES SHOULD BE DONE ....

I COPIED ALL THE FILE FROM FREEBSD TO REDHAT 9.0 INCLUDING MAKEFILE .
IF I RUN THE MAKEFILE .I AM GETTING ONLY ONE ERROR AS FOLLOWS

THE MAKEFILE CONTENT :
Code:
************************************
# New ports collection makefile for:    blackjack
# Date created:         23 February 1996
# Whom:
#
# $FreeBSD: ports/games/blackjack/Makefile,v 1.18 2004/02/05 20:37:10
trevor Exp $
#

PORTNAME=       blackjack
PORTVERSION=    1.2
CATEGORIES=     games
MASTER_SITES=   ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR=     games/strategy
EXTRACT_SUFX=   .tgz

MAINTAINER=     p...@FreeBSD.org
COMMENT=        One of the better implementations of blackjack, based on QT

WRKSRC=         ${WRKDIR}/${PORTNAME}

USE_QT_VER=     3
MAKE_ENV=       QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
                QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}"

MAN1=           blackjack.1
PLIST_FILES=    bin/blackjack

.include <bsd.port.mk>    // ERROR: missing paramerter,

-------------------------------------------------------------------------------------------------------------------------------------------
bsd.port.mk is the system makefile consist of all the system
initializing, port intitilize , server and client connectivity .....
this is the most important mainfile .........

i don't know which file do the same work in the REDHAT 9.0 .....

PLEASE HELP ME ........

Last edited by XavierP; 12-29-2006 at 05:01 AM.
 
Old 12-29-2006, 01:43 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
First, gmake is not the same as pmake (the FreeBSD make program). In fact, mixing them can have really unpleasant results. That is problem number 1. You need to use pmake with these style Makefiles.

Second, bsd.port.mk is one of many Makefiles (and it calls most of the rest so your problem is more than one missing file here). You are missing many, many files.

Third, bsd.port.mk is part of the ports system. You can't use it independent of it. There is no file which does the same work on a RedHat system. It's specific to FreeBSD. You will not be able to use this method of installing software on Linux (unless you port the ports system over).

Edit: This question is related to specifics of FreeBSD and I have reported it to be moved to the BSD forum so that more people can see it and possibly offer some pointers to walk you through what you really want to do.

Last edited by frob23; 12-29-2006 at 01:46 AM.
 
Old 12-29-2006, 05:02 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
freebsd, makefile


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Makefile in freebsd will work in redhat9.0 linux yogeshk@redim.net LQ Suggestions & Feedback 1 12-29-2006 04:45 AM
Changing Of Makefile From Freebsd To Redhat 9.0 yogeshk@redim.net Linux - Games 1 12-29-2006 04:44 AM
Makefile differnce between FreeBSD and Linux koyi Programming 4 01-17-2005 11:05 PM
Linux Programs work on FreeBSD, right? Travis86 *BSD 7 08-07-2003 12:46 AM


All times are GMT -5. The time now is 08:24 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration