18 lines
355 B
Makefile
18 lines
355 B
Makefile
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): src_portable/casino_portable.c src_portable/casino_portable.h
|
|
$(CC) $(CFLAGS) src_portable/casino_portable.c -o $(TARGET) $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(TARGET) *.o
|