lab5
This commit is contained in:
16
lab5/Makefile
Normal file
16
lab5/Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -O2
|
||||
OBJ = main.o server.o daemon.o
|
||||
|
||||
chatserver: $(OBJ)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJ)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
rm -f *.o chatserver
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user