You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
407 B
Makefile
19 lines
407 B
Makefile
include ../conf
|
|
|
|
CFLAGS= $(WARNINGS) $(DEFINES) $(INCLUDES)
|
|
DEFINES= -D_XOPEN_SOURCE=600 $(POSIX_SPAWN) $(ENVIRON)
|
|
INCLUDES= $(LUAINC)
|
|
WARNINGS= -W -Wall
|
|
LIBS= $(LUALIB)
|
|
|
|
T= ex.so
|
|
default: $(T)
|
|
|
|
OBJS= ex.o spawn.o $(EXTRA)
|
|
$(T): $(OBJS) $(EXTRA); $(CC) -shared -o $@ $(OBJS) $(LIBS)
|
|
ex.o: ex.c spawn.h
|
|
spawn.o: spawn.c spawn.h
|
|
posix_spawn.o: posix_spawn.c posix_spawn.h
|
|
|
|
clean:; rm -f *.o ex.so ex.dll $(T)
|