2023-05-10 17:47:42 +00:00
|
|
|
include config.mk
|
2023-05-09 10:42:03 +00:00
|
|
|
|
2023-05-10 17:47:42 +00:00
|
|
|
SRC = popup.c
|
|
|
|
OBJ = $(SRC:.c=.o)
|
2023-05-09 10:42:03 +00:00
|
|
|
|
2023-05-10 17:47:42 +00:00
|
|
|
all: options popup
|
2023-05-09 10:42:03 +00:00
|
|
|
|
2023-05-10 17:47:42 +00:00
|
|
|
options:
|
|
|
|
@echo popup build options:
|
|
|
|
@echo "CFLAGS = $(CFLAGS)"
|
|
|
|
@echo "LDFLAGS = $(LDFLAGS)"
|
|
|
|
@echo "CC = $(CC)"
|
2023-05-09 10:42:03 +00:00
|
|
|
|
2023-05-10 17:47:42 +00:00
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
popup: popup.o
|
|
|
|
$(CC) -o $@ popup.o $(LDFLAGS)
|
2023-05-09 10:42:03 +00:00
|
|
|
|
2023-05-10 17:52:09 +00:00
|
|
|
install: all
|
2023-05-09 10:42:03 +00:00
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
2023-05-10 17:52:09 +00:00
|
|
|
cp -f popup ${DESTDIR}${PREFIX}/bin
|
2023-05-09 10:42:03 +00:00
|
|
|
|
|
|
|
uninstall:
|
2023-05-10 17:52:09 +00:00
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/popup
|
2023-05-09 10:42:03 +00:00
|
|
|
|
|
|
|
clean:
|
2023-05-10 17:52:09 +00:00
|
|
|
rm -f popup $(OBJ)
|
2023-05-09 10:42:03 +00:00
|
|
|
|
|
|
|
.PHONY: all install uninstall clean
|