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)