.SUFFIXES : .c .o 

CC = gcc

INC =
LIBS =
CFLAGS = -g $(INC) -fPIC 

OBJS = CarbonCore.o Files.o MacTypes.o  FixMath.o MacMemory.o MixedMode.o Devices.o TextUtils.o\
Components.o Debugging.o fp.o Math64.o LowMem.o
SRCS = CarbonCore.c Files.c MacTypes.c FixMath.c MacMemory.c MixedMode.c Devices.c TextUtils.c\
Components.c Debugging.c fp.c Math64.c LowMem.c

TARGET = libCarbonCore.so


all : $(TARGET)
$(TARGET) : $(OBJS)
	$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS)

dep :
	gccmakedep $(INC) $(SRCS)

clean :
	rm -rf $(OBJS) $(TARGET) core# DO NOT DELETE

##$(TARGET) : $(OBJS)
#	#$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS)

# DO NOT DELETE
IOKit.o: IOKit.c

