lua_lib_in_c_playground/Makefile
2024-08-17 16:26:07 +02:00

15 lines
240 B
Makefile

cc = gcc
CFLAGS := $(CFLAGS) -Wall -Wextra -D_GNU_SOURCE
LIBFLAGS = $(pkg-config --libs --cflags lua)
objs = uname.so
all : $(objs)
%.so : %.c %.h
$(cc) -o $@ $(CFLAGS) $(LIBFLAGS) -fPIC -shared $<
.PHONY : clean
clean :
-rm $(objs)