Skip to content

Commit

Permalink
Simplify makefile (no IDIR/LIBS)
Browse files Browse the repository at this point in the history
  • Loading branch information
danpodeanu committed Oct 9, 2023
1 parent 3c887ca commit 0f18068
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
IDIR=include
CC=gcc
CFLAGS=-I$(IDIR) -Wall -O3
CFLAGS=-Wall -O3

ODIR=obj

LIBS=

_DEPS =
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))

_OBJ = udp-redirect.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))

$(ODIR)/%.o: %.c $(DEPS)
$(ODIR)/%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)

udp-redirect: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
$(CC) -o $@ $^ $(CFLAGS)

.PHONY: clean

Expand Down

0 comments on commit 0f18068

Please sign in to comment.