universalservice/Makefile

22 lines
461 B
Makefile
Raw Normal View History

.PHONY: test clean
2024-06-11 23:40:34 -04:00
COMMON_OBJECTS=uns.o
CHENEY_C89_OBJECTS=cheney_c89.o c89_relo.o
CFLAGS=-Wall -std=c89 -Werror -pedantic -fPIC -g -Iinclude
2024-06-11 23:40:34 -04:00
libuniversalservice.so: $(COMMON_OBJECTS) $(CHENEY_C89_OBJECTS)
$(CC) -shared $(COMMON_OBJECTS) $(CHENEY_C89_OBJECTS) -o libuniversalservice.so
.c.o:
$(CC) $(CFLAGS) $< -c -o $@
test:
2024-06-11 23:40:34 -04:00
###################
## Clean
##################
clean:
rm -f $(COMMON_OBJECTS) $(CHENEY_C89_OBJECTS) libuniversalservice.so