Order of the Butterfly
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 ?