CC = gcc CFLAGS = -Wall -g TARGETS = libdccp.so DccpLib.dll DccpClient.exe all: $(TARGETS) DccpClient.exe: DccpClient.cs DccpLib.dll gmcs -optimize -reference:DccpLib.dll DccpClient.cs DccpServer.exe: DccpServer.cs DccpLib.dll gmcs -optimize -reference:DccpLib.dll DccpServer.cs DccpLib.dll: DccpLib.cs gmcs -optimize -target:library DccpLib.cs libdccp.so: libdccp.c gcc -fPIC -g -c -Wall libdccp.c gcc -shared -Wl,-soname,libdccp.so.1 -o libdccp.so libdccp.o -lc clean: rm $(TARGETS) *.o