forked from Avdan-OS/Imager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 708 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (17 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC=gcc
# Streaming decompression codecs. Remove entries here (and the matching
# libraries below) if a library is unavailable on your system.
# The CMake build auto-detects these instead.
CODEC_DEFS=-DHAVE_ZLIB -DHAVE_LZMA -DHAVE_BZIP2 -DHAVE_ZSTD
CODEC_LIBS=-lz -llzma -lbz2 -lzstd
CFLAGS=-O2 -Wall -I./include $(CODEC_DEFS)
TARGET=imager
SRCS=src/main.c src/core/progress.c src/utils/utils.c src/core/iso_operations.c src/core/image_format.c src/core/image_reader.c src/core/image_write.c src/core/windows_iso.c src/core/device_lock.c
OBJS=$(SRCS:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(OBJS) -o $(TARGET) $(CODEC_LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)