Új hozzászólás Aktív témák

  • VladimirR

    nagyúr

    adott ket file, egy simple.c es egy makefile, utobbi hivna meg a forditot, meg ilyenek
    ez suliban megy is rendesen, ott annyit teszek, hogy ravagok az enterre, mikor mc-ben a makefile-on all a kijeloles, vagy beirom, hogy ./makefile es kesz is, fordul, minden szep
    itthon viszont (debian etch) nem akarodzik menni
    beirom, hogy ./makefile, az meg elkezdi irn, hogy command not found, blablabla, blablablablabla

    a makefile pontos tartalma:

    # Makefile for Phigs examples

    APPS = simple
    OBJ = $(APPS).o
    SRC = $(APPS).c

    CFLAGS = $(C_OPTS) -I/usr/include
    LIBS = -L/usr/X11R6/lib -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm -lpthread

    application:$(APPS)

    clean:
    rm -f $(APPS) *.raw *.o core a.out

    realclean: clean
    rm -f *~ *.bak *.BAK

    .SUFFIXES: c o
    .c.o:
    $(CC) -c $(CFLAGS) $<

    $(APPS): $(OBJ)
    $(CC) -o $(APPS) $(CFLAGS) $(OBJ) $(LIBS)

    depend:
    makedepend -- $(CFLAGS) $(SRC)




    a pontos hibauzenet:

    : command not found
    ./Makefile: line 3: APPS: command not found
    ./Makefile: line 1: APPS: command not found
    ./Makefile: line 4: OBJ: command not found
    ./Makefile: line 1: APPS: command not found
    ./Makefile: line 5: SRC: command not found
    : command not found
    ./Makefile: line 1: C_OPTS: command not found
    ./Makefile: line 7: CFLAGS: command not found
    ./Makefile: line 8: LIBS: command not found
    : command not found
    ./Makefile: line 1: APPS: command not found
    : command not found: application:
    : command not found:
    : command not found: clean:
    ./Makefile: line 1: APPS: command not found
    : command not found:
    ./Makefile: line 15: realclean:: command not found
    : command not found:
    ./Makefile: line 18: .SUFFIXES:: command not found
    : command not found: .c.o:
    ./Makefile: line 1: CC: command not found
    ./Makefile: line 1: CFLAGS: command not found
    : Nincs ilyen fájl vagy könyvtár
    : command not found:
    ./Makefile: line 1: APPS: command not found
    ./Makefile: line 1: OBJ: command not found
    ./Makefile: line 1: CC: command not found
    ./Makefile: line 1: APPS: command not found
    ./Makefile: line 1: CFLAGS: command not found
    ./Makefile: line 1: OBJ: command not found
    ./Makefile: line 1: LIBS: command not found
    ./Makefile: line 23: -o: command not found
    : command not found:
    : command not found: depend:
    ./Makefile: line 1: CFLAGS: command not found
    ./Makefile: line 1: SRC: command not found
    ''akedepend: warning: cannot open ''
    : command not found:


    a kerdes tehat az volna, hogy hogyan, mikent kellene meghivon a makefile-t, hogy leforduljon a simple.c?

    elore is koszonom

Új hozzászólás Aktív témák