Added basic template for server - accepting connnections, command line
arguments, etc
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
RM=rm -f
|
||||
CFLAGS=
|
||||
LDFLAGS=
|
||||
LIBS=
|
||||
TARGET=wstationd
|
||||
SRC= \
|
||||
src/wstationd.c
|
||||
OBJ=$(SRC:.c=.o)
|
||||
|
||||
.PHONY: clean all
|
||||
|
||||
.c.o:
|
||||
$(CC) -Wall -std=c99 $(CFLAGS) -c $< -o $@
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o $@
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJ) $(TARGET)
|
Reference in New Issue
Block a user