Initial commit
This commit is contained in:
commit
59f2a246b9
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
websh
|
||||
*.o
|
||||
*.json
|
||||
*.sh
|
||||
.vimrc
|
||||
*.gch
|
||||
Doxyfile
|
||||
html/
|
||||
latex/
|
||||
*.tgz
|
||||
*.pdf
|
||||
16
Makefile
Normal file
16
Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
CC = gcc
|
||||
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
|
||||
|
||||
all: server client
|
||||
|
||||
server: server.o common.h
|
||||
$(CC) $^ -o $@
|
||||
|
||||
client: client.o common.h
|
||||
$(CC) $^ -o $@
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) $^
|
||||
|
||||
.PHONY clean:
|
||||
rm -f common.h.ghc client.o server.o client server
|
||||
Loading…
x
Reference in New Issue
Block a user