camekommd

Untitled

Feb 5th, 2026 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. CC = cc
  2.  
  3. X11_CFLAGS != pkg-config --cflags x11
  4. X11_LIBS != pkg-config --libs x11
  5.  
  6. CFLAGS = -O2 -pipe -Wall -Wextra ${X11_CFLAGS}
  7. LDFLAGS = ${X11_LIBS}
  8.  
  9. PROG = sunwm
  10.  
  11. SRCS != ls *.c
  12. OBJS = ${SRCS:.c=.o}
  13.  
  14. all: ${PROG}
  15.  
  16. ${PROG}: ${OBJS}
  17. ${CC} ${CFLAGS} -o ${PROG} ${OBJS} ${LDFLAGS}
  18.  
  19. .c.o:
  20. ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
  21.  
  22. clean:
  23. rm -f ${OBJS} ${PROG}
  24.  
Advertisement
Add Comment
Please, Sign In to add comment