16 lines
240 B
Makefile
16 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)
|