init with uname
This commit is contained in:
commit
818a9f4254
4 changed files with 113 additions and 0 deletions
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
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)
|
Loading…
Add table
Add a link
Reference in a new issue