all: libopen.so stdio.exe

libopen.so: open.c
	gcc -fPIC -c open.c -o open.o
	ld -shared -o libopen.so open.o -ldl

stdio.exe:stdio.c
	gcc -o stdio.exe stdio.c

clean:
	rm -f *.so *.o *.exe
