Update Makefile, change build

This commit is contained in:
2024-02-26 01:39:53 -05:00
parent 1430c2f33c
commit a952a10759
4 changed files with 92 additions and 90 deletions

View File

@@ -1,5 +1,9 @@
CC=gcc
CFLAGS=-lcurl -lcjson
SRCDIR=src
OBJDIR=bin
# Use variables for source and object files
ip-lookup: $(SRCDIR)/main.c
$(CC) -o $(OBJDIR)/ip-lookup $(SRCDIR)/main.c $(CFLAGS)
ip-lookup: main.c
$(CC) -o ip-lookup main.c $(CFLAGS)