ip-lookup/Makefile

10 lines
202 B
Makefile
Raw Normal View History

2024-02-26 01:27:22 -05:00
CC=gcc
CFLAGS=-lcurl -lcjson
2024-02-26 01:39:53 -05:00
SRCDIR=src
OBJDIR=bin
# Use variables for source and object files
ip-lookup: $(SRCDIR)/main.c
2024-02-26 01:45:55 -05:00
@mkdir -p $(OBJDIR)
2024-02-26 01:39:53 -05:00
$(CC) -o $(OBJDIR)/ip-lookup $(SRCDIR)/main.c $(CFLAGS)