Scribble One click compile
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    Hi! Trying to play again with mos coding.
    Instead of using command line gcc, does scribble has some auto "click and compile" button?
    I write a simple hello world, name it let's say main.c, next i click the hammer button but i have a message:
    "make: *** no targets specified and no makefile found. stop."
    Should I write my own makefile?
    What's the correct way to create a c/c++ project?

    Thx!
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »18.05.15 - 19:07
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    Quote:

    rebraist wrote:
    Hi! Trying to play again with mos coding.
    Instead of using command line gcc, does scribble has some auto "click and compile" button?
    I write a simple hello world, name it let's say main.c, next i click the hammer button but i have a message:
    "make: *** no targets specified and no makefile found. stop."
    Should I write my own makefile?
    What's the correct way to create a c/c++ project?

    Thx!


    1. Create a own Makefile.
    For example:


    Code:
    CC = ppc-morphos-gcc
    AR = ppc-morphos-ar
    RANLIB = ppc-morphos-ranlib
    RM = rm

    CFLAGS = -O2 -s -noixemul -I- -IMytestapppath



    SRCS = main.c


    OBJS = $(SRCS:.c=.o)

    LIB = Mytestapp


    all: $(LIB)

    %.o: %.c *.h
    @echo Compiling $@...
    @$(CC) $(CFLAGS) -c $*.c -o $*.o

    $(LIB): $(OBJS)
    @echo Making $@...
    @$(CC) $(OBJS) -noixemul -s -Wall -Wextra -O2 -o $(LIB)

    clean:
    @echo Cleaning up...
    @-$(RM) -f $(OBJS) $(LIB)


    2. Scribble can only compile your code with the hammer only if you make your source with Scribble and save it.
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »18.05.15 - 20:17
    Profile
  • MorphOS Developer
    Nadir
    Posts: 157 from 2003/3/17
    Indeed, it needs a makefile. Fulll project functionality like what one would expect in an IDE might be implemented in a future version of Scribble.
  • »18.05.15 - 20:20
    Profile
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    thk you both!!
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »18.05.15 - 21:19
    Profile