.SUFFIXES : .c .o 

CC = gcc

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

OBJS = OpenCocoa.o 
SRCS = OpenCocoa.c


TARGET = libOpenCocoa.so


all : $(TARGET)
$(TARGET) : $(OBJS)
	$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) \
-lnet\
-lAE           -l ColorSync         -lFoundation         -l OpenScripting        -lWebKit \
-lAppKit        -lCoreAudio        -lHIServices          -lQD                   -lhys\
-lAudioToolbox  -lCoreAudioKit      -lHIToolbox           -lQTKit                -lkern\
-lAudioUnit     -lCoreGraphics      -lIOKit               -lQuartzCore           -llibkern\
-lCFNetwork     -lCoreService       -lImageIO             -lQuickTime            -lmach\
-lCarbon        -lDVComponentGlue   -lLaunchServices      -lSecurity             -lmach-o\
-lCarbonCore    -lDVDPlayback      -l NavigationServices  -lSpeechSynthesis      -lsys\
-lCarbonSound   -lDirectoryService  -lCoreFoundation   -lSyncServices         -lvecLib\
-lCocoa         -lDiskArb           -lOpenGL              -lSystemConfiguration  -lvm -lAGL\
-lvImage  -lAddressBook -lHelp -lCommonPanels -lImageCapture -lPrint -lInk -lSecurityHI\
-lHTMLRendering  -lSpeechRecognition -lApplicationServices -FindByContent -lPrintCore  \
-lATS -lLangAnalysis  -lCoreText -lSearchKit -lDiscRecordingEngine -lDiscRecordingUI \
-lservers -lInterfaceBuilder -lroot -lgnustep-base -lDiscRecordingContent -lCoreData \
-lAutomator -lDrawSprocket -lQuartzComposer -lGLUT -lOSServices -lXgridFoundation \
-lPDFKit -lScreenSaver -lCommonCrypto -lobjc_OC -lTWAIN -lMetadata \
-lSenTestingKit 

dep :
	gccmakedep $(INC) $(SRCS)

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

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

# DO NOT DELETE
OpenCocoa.o: OpenCocoa.c
