~aritra1911/mc_server

678cde906a2da0ea367b5ac1be37895ac89e847c — Aritra Sarkar 1 year, 11 months ago 457e33f
Didn't realize that Nico's Makefile is already compatible with GAHNOO make
1 files changed, 0 insertions(+), 27 deletions(-)

D Makefile.gmake
D Makefile.gmake => Makefile.gmake +0 -27
@@ 1,27 0,0 @@

CFLAGS		=	-std=iso9899:1999 -pedantic -pedantic-errors -Wall -Wextra \
			-Werror-implicit-function-declaration -Wno-reserved-id-macro \
			-Wno-missing-prototypes -Wno-thread-safety-analysis -Wno-padded \
			-Wno-cast-align -Wno-comma -g -O0 -fno-fast-math -fno-builtin

CPPFLAGS	=	-D_XOPEN_SOURCE=600 -D_POSIX_PTHREAD_SEMANTICS \
			-D_LARGEFILE64_SOURCE

LDFLAGS		=	-pthread

SRCS		=	main.c session.c response.c tpool.c events.c helpers.c

OBJS		=	$(SRCS:.c=.o)

.PHONY: all clean

all: server

server: $(OBJS)
	$(CC) $(LDFLAGS) -o server $(OBJS)

.c.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<

clean:
	rm -f $(OBJS) server