Skip to content
Snippets Groups Projects
Commit 280e903f authored by Travis Glenn Hansen's avatar Travis Glenn Hansen
Browse files

Merge pull request #17 from Barthalion/makefile

Rewrite Makefile
parents b1e8e245 40d433fd
No related branches found
No related tags found
No related merge requests found
PROJ = fanout
OBJS =
CC = gcc
DEBUG = -g
CFLAGS = -Wall -c $(DEBUG)
LFLAGS = -Wall $(DEBUG)
SRC = fanout.c
OBJ = ${SRC:.c=.o}
CFLAGS = -std=c99 -Wall -g
DESTDIR = /
.PHONY : $(OBJS)
fanout:
fanout : fanout.c
$(CC) $(LFLAGS) $(OBJS) -o $(PROJ) fanout.c
install:
mkdir -p $(DESTDIR)/usr/sbin
cp fanout $(DESTDIR)/usr/sbin/fanout
install: fanout
install -Dm755 fanout $(DESTDIR)/usr/bin/fanout
clean:
test \! -f fanout || rm fanout
rm -f fanout
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment