Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 498 Bytes
###
### Makefile
###
CC = gcc
TARGET = rng
INSTALL = /usr/bin/install -c
INCLUDE = include
SOURCES = src
TOOLS = tools
CSFILES = $(wildcard $(SOURCES)/*.c)
OBFILES = $(patsubst %.c,%.o,$(CSFILES))
CFLAGS = -I$(INCLUDE)
LDFLAGS = -pthread -lz
.PHONY: all $(TARGET) clean install uninstall
all: $(TARGET)
$(TARGET): $(CSFILES)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
clean:
@cd $(TOOLS) && ./clean.sh
install:
@cd $(TOOLS) && ./install.sh
uninstall:
@cd $(TOOLS) && ./uninstall.sh