OBJS:= client.dll client32.dll client.so parent parent.exe parent32.exe all : $(OBJS) CFLAGS:=-Os #MINGW:=/usr/bin/i586-mingw32msvc- MINGW:=/usr/bin/x86_64-w64-mingw32- MINGW32:=/usr/bin/i686-w64-mingw32- client.dll : client.c $(MINGW)gcc $(CFLAGS) -shared -o $@ $^ parent.exe : parent.c $(MINGW)gcc $(CFLAGS) -o $@ $^ ./client.dll client32.dll : client.c $(MINGW32)gcc $(CFLAGS) -m32 -shared -o $@ $^ parent32.exe : parent.c $(MINGW32)gcc $(CFLAGS) -m32 -o $@ $^ ./client32.dll client.so : client.c gcc $(CFLAGS) -o $@ $^ -shared parent : parent.c gcc $(CFLAGS) -o $@ $^ ./client.so clean : rm -rf $(OBJS) *~ *.o