<commit_before>############################################################################
#
# Euchre server makefile
# <NAME>
# February 24, 1999
#
###########################################################################

# runtime default configuration values

# the base directory for all config files
BASE=.

# default configuration file
CONFIG=$(BASE)/euchred.ini

# default log file
LOGFILE=$(BASE)/euchred.log

# default listen port
PORT=1234

# default debug flag (0=off, 1=on)
DF=0

# default verbosity level: requires DF=1 (see debug.h for values)
VL=0

# version number
VERSION=0.9


###########################################################################

# general compile flags 'n stuff

# The compiler to use
CC=gcc

# these are for general use
CFLAGS= -Wall -O2 -DBASE=\"$(BASE)\" -DCONFIG=\"$(CONFIG)\" -DLOGFILE=\"$(LOGFILE)\" -DPORT=$(PORT) -DDF=$(DF) -DVL=$(VL) -DVERSION=\"$(VERSION)\"

LDFLAGS=

# command to generate tag files
#CTAGS=ctags -tvS
CTAGS=ctags 

# tags file
CTAGSFILE=./tags

# The directory that contains the makescripts
MAKESCRIPTS=../makescripts

###########################################################################

BIN=euchred

SRC=client.c \
    cards.c \
    euchred.c \
    game.c \
    init.c \
    log.c \
    message.c \
    pack.c \
    print.c \
    signal.c \
    socket.c \

OBJ=client.o \
	cards.o \
	euchred.o \
    game.o \
    init.o \
    log.o \
    message.o \
    pack.o \
    print.o \
    signal.o \
    socket.o \

AUX=$(CTAGSFILE) $(CTAGSFILE).vim euchred.log

CLEAN=$(OBJ) $(AUX) core
REALCLEAN=$(CLEAN) $(BIN)
DISTCLEAN=$(REALCLEAN) .*.vim .*.swp

#*******************************#

$(BIN): proto.h tags ../common/messages.pl ../common/suits.pl $(OBJ)
	$(CC) $(OBJ) -o $(BIN) $(LDFLAGS) 

all : $(OBJ) 
	$(CC) $(OBJ) -o $(BIN) $(LDFLAGS) 

tags: $(SRC) $(HEADERS)
	rm -f $(CTAGSFILE)
	$(CTAGS) -f $(CTAGSFILE) *.h *.c
	cat $(CTAGSFILE) | $(MAKESCRIPTS)/tags2syntax > $(CTAGSFILE).vim

clean:
	rm -f $(CLEAN)

realclean:
	rm -f $(REALCLEAN)

distclean:
	rm -f $(DISTCLEAN)

proto.h: $(SRC)
	$(MAKESCRIPTS)/mkproto > proto.h

../common/messages.pl: ../common/messages.h
	$(MAKESCRIPTS)/h2pl ../common/messages.h > ../common/messages.pl

../common/suits.pl: ../common/suits.h
	$(MAKESCRIPTS)/h2pl ../common/suits.h > ../common/suits.pl

%.o : %.c 
	$(CC) $(CFLAGS) -c $< -o $@<commit_msg>remove targets for suits.pl and messages.pl<commit_after>############################################################################
#
# Euchre server makefile
# <NAME>
# February 24, 1999
#
###########################################################################

# runtime default configuration values

# the base directory for all config files
BASE=.

# default configuration file
CONFIG=$(BASE)/euchred.ini

# default log file
LOGFILE=$(BASE)/euchred.log

# default listen port
PORT=1234

# default debug flag (0=off, 1=on)
DF=0

# default verbosity level: requires DF=1 (see debug.h for values)
VL=0

# version number
VERSION=0.9


###########################################################################

# general compile flags 'n stuff

# The compiler to use
CC=gcc

# these are for general use
CFLAGS= -Wall -O2 -DBASE=\"$(BASE)\" -DCONFIG=\"$(CONFIG)\" -DLOGFILE=\"$(LOGFILE)\" -DPORT=$(PORT) -DDF=$(DF) -DVL=$(VL) -DVERSION=\"$(VERSION)\"

LDFLAGS=

# command to generate tag files
#CTAGS=ctags -tvS
CTAGS=ctags 

# tags file
CTAGSFILE=./tags

# The directory that contains the makescripts
MAKESCRIPTS=../makescripts

###########################################################################

BIN=euchred

SRC=client.c \
    cards.c \
    euchred.c \
    game.c \
    init.c \
    log.c \
    message.c \
    pack.c \
    print.c \
    signal.c \
    socket.c \

OBJ=client.o \
	cards.o \
	euchred.o \
    game.o \
    init.o \
    log.o \
    message.o \
    pack.o \
    print.o \
    signal.o \
    socket.o \

AUX=$(CTAGSFILE) $(CTAGSFILE).vim euchred.log

CLEAN=$(OBJ) $(AUX) core
REALCLEAN=$(CLEAN) $(BIN)
DISTCLEAN=$(REALCLEAN) .*.vim .*.swp

#*******************************#

$(BIN): proto.h tags $(OBJ)
	$(CC) $(OBJ) -o $(BIN) $(LDFLAGS) 

all : $(OBJ) 
	$(CC) $(OBJ) -o $(BIN) $(LDFLAGS) 

tags: $(SRC) $(HEADERS)
	rm -f $(CTAGSFILE)
	$(CTAGS) -f $(CTAGSFILE) *.h *.c
	cat $(CTAGSFILE) | $(MAKESCRIPTS)/tags2syntax > $(CTAGSFILE).vim

clean:
	rm -f $(CLEAN)

realclean:
	rm -f $(REALCLEAN)

distclean:
	rm -f $(DISTCLEAN)

proto.h: $(SRC)
	$(MAKESCRIPTS)/mkproto > proto.h

%.o : %.c 
	$(CC) $(CFLAGS) -c $< -o $@
{'fraction_non_alphanumeric': 0.3033932135728543, 'fraction_numerical': 0.008871146595697495, 'mean_word_length': 3.5833333333333335, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2300366', 'n_tokens_mistral': 1717, 'n_tokens_neox': 1609, 'n_words': 381}