LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Makefile in freebsd will work in redhat9.0 linux (https://www.linuxquestions.org/questions/programming-9/makefile-in-freebsd-will-work-in-redhat9-0-linux-514493/)

yogeshk@redim.net 12-28-2006 11:48 PM

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 ........

frob23 12-29-2006 12:43 AM

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.

XavierP 12-29-2006 04:02 AM

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


All times are GMT -5. The time now is 07:40 PM.