22 lines
267 B
Makefile
22 lines
267 B
Makefile
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)
|