CC ?= gcc CFLAGS ?= -std=c99 -O2 -Wall ifeq ($(OS),Windows_NT) LIBS = -lws2_32 TARGET = poker_portable.exe else LIBS = TARGET = poker_portable endif all: $(TARGET) $(TARGET): casino_portable.c casino_portable.h $(CC) $(CFLAGS) casino_portable.c -o $(TARGET) $(LIBS) clean: rm -f $(TARGET) *.o