2024-06-12 08:56:49 -04:00
|
|
|
.PHONY: test clean
|
2024-06-11 23:40:34 -04:00
|
|
|
|
|
|
|
COMMON_OBJECTS=uns.o
|
|
|
|
CHENEY_C89_OBJECTS=cheney_c89.o c89_relo.o
|
|
|
|
|
2024-06-12 08:56:49 -04:00
|
|
|
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 $@
|
|
|
|
|
2024-06-12 08:56:49 -04:00
|
|
|
test:
|
|
|
|
|
2024-06-11 23:40:34 -04:00
|
|
|
|
|
|
|
###################
|
|
|
|
## Clean
|
|
|
|
##################
|
|
|
|
|
|
|
|
clean:
|
2024-06-12 08:56:49 -04:00
|
|
|
rm -f $(COMMON_OBJECTS) $(CHENEY_C89_OBJECTS) libuniversalservice.so
|