Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 237 Bytes
# On Windows, add "-DWIN32"
CC=gcc
CFLAGS=-O3 -W -Wall -Wextra
LIB=socketpair
all: $(LIB).o
dummy: # test win32 build on unix
$(CC) -DWIN32 $(CFLAGS) -Idummy_headers -c -o $(LIB).dummy $(LIB).c
rm $(LIB).dummy
clean:; rm $(LIB).o