aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-11-10 15:32:09 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-11-10 15:32:09 +0200
commit1c5ebd8c41727d61e4d5caded2e06ddb1ecd0e1d (patch)
tree37404e5e5ebf31c31a251a7fba2180edfb5bef37 /Makefile
parent6f861c154373811647d792683b78bab5857ff992 (diff)
downloadgimp-plugin-img-1c5ebd8c41727d61e4d5caded2e06ddb1ecd0e1d.tar.gz
Update for 2022
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 0b615b9..a092562 100644
--- a/Makefile
+++ b/Makefile
@@ -4,16 +4,10 @@ GIMPTOOL = gimptool-2.0
CC = gcc
LD = gcc
CFLAGS = $(shell $(GIMPTOOL) --cflags) \
- -O2 -ansi -pedantic -Wall -Wextra -Wno-attributes \
- -Wno-unused-parameter \
- #-save-temps -g
+ -O2 -Wall -Wextra -Wno-attributes \
+ -Wno-unused-parameter
-LDFLAGS = $(shell $(GIMPTOOL) --libs)
-
-INDENT_OPT = -bap -bad -bbb -bl -bli0 -bls \
- -c2 -cli2 -cdb -sc -ncs -npcs \
- -nhnl -i4 -l80 -saf -sai -saw \
- -nprs -sob -nut -nbc -ppi2 -nbbo
+LIBS = $(shell $(GIMPTOOL) --libs)
SRC = $(wildcard *.c)
HDR = $(wildcard *.h)
@@ -44,7 +38,7 @@ clean:
rm -f *.o *.i *.s $(MAIN)
$(MAIN): $(OBJ)
- $(LD) $(LDFLAGS) $(OBJ) -o $@
+ $(LD) $(OBJ) $(LIBS) -o $@
%.o: %.c $(HDR) Makefile
$(CC) -c $(CFLAGS) $< -o $@