restructure
This commit is contained in:
21
draw_parra/makefile
Normal file
21
draw_parra/makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
CC := gcc
|
||||
CFLAGS := -Wall -Wextra
|
||||
LDLIBS := -lc -lm
|
||||
|
||||
TARGET := dmx2img
|
||||
|
||||
SRC := dmx2img.c
|
||||
|
||||
# -------------------------------------------------
|
||||
# Default target – just type `make` to build
|
||||
all: $(TARGET)
|
||||
|
||||
# How to build the executable
|
||||
$(TARGET): $(SRC)
|
||||
$(CC) $(CFLAGS) $^ $(LDLIBS) -o $@
|
||||
|
||||
# Convenience: `make clean` to remove the binary
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
Reference in New Issue
Block a user