From c57935db5ad1e5f128d5f197951763caac4bdbc4 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 16 Apr 2025 23:57:41 -0700 Subject: gcc no need -g because no need debug; clean Makefile --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0db7032..52d258a 100644 --- a/Makefile +++ b/Makefile @@ -2,22 +2,21 @@ # https://github.com/BlueCannonBall/XAim # https://git.suckless.org/dwm -CC = gcc -CFLAGS = -g -Wall -lX11 PREFIX = /usr/local +all: xcross + xcross: xcross.c - $(CC) $(CFLAGS) -o $@ $< + cc -Wall -lX11 -o $@ $< clean: rm -f xcross -install: +install: all mkdir -p ${DESTDIR}${PREFIX}/bin cp -f xcross ${DESTDIR}${PREFIX}/bin - chmod 755 ${DESTDIR}${PREFIX}/bin/xcross uninstall: rm -f ${DESTDIR}${PREFIX}/bin/xcross -.PHONY: clean install uninstall +.PHONY: all clean install uninstall -- cgit v1.2.3-70-g09d2