diff options
Diffstat (limited to 'server/Makefile')
| -rw-r--r-- | server/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/server/Makefile b/server/Makefile new file mode 100644 index 0000000..f2b6ca3 --- /dev/null +++ b/server/Makefile @@ -0,0 +1,23 @@ +TARGET = $(shell basename $(CURDIR)) + +SRCS = $(wildcard *.c) +OBJS = $(SRCS:.c=.o) + +CC = gcc + +all: build + +build: $(TARGET) + +clean: + rm -f $(OBJS) + rm -f $(TARGET) + +run: $(TARGET) + $(realpath $(TARGET)) + +$(TARGET): $(OBJS) + $(CC) -o $(TARGET) $(OBJS) + +.c.o: + $(CC) -c -o $*.o $^ |
