Task 001: Project scaffolding
Created directory structure, Makefile, and itr4m.h top-level header. Build system auto-discovers src/**/*.c via find, uses pkg-config for library dependencies. Handles missing deps gracefully. Files created: - Makefile - include/itr4m.h - .gitkeep files in all subdirectories Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
adb0ec097b
commit
7d3fe3935d
15 changed files with 44 additions and 0 deletions
29
Makefile
Normal file
29
Makefile
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
CC = cc
|
||||
CFLAGS = -Wall -Wextra -std=c99 -D_GNU_SOURCE -O2
|
||||
LDFLAGS =
|
||||
|
||||
# Library discovery via pkg-config (warn but do not fail if missing)
|
||||
PKG_LIBS = libimobiledevice-1.0 libirecovery-1.0 libusb-1.0 \
|
||||
libplist-2.0 openssl
|
||||
|
||||
CFLAGS += $(shell pkg-config --cflags $(PKG_LIBS) 2>/dev/null)
|
||||
LDFLAGS += $(shell pkg-config --libs $(PKG_LIBS) 2>/dev/null)
|
||||
|
||||
# Auto-discover all C sources under src/
|
||||
SRCS = $(shell find src -name '*.c')
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
TARGET = itr4m
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -Iinclude -c -o $@ $<
|
||||
|
||||
clean:
|
||||
find src -name '*.o' -delete
|
||||
rm -f $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
0
include/activation/.gitkeep
Normal file
0
include/activation/.gitkeep
Normal file
0
include/bypass/.gitkeep
Normal file
0
include/bypass/.gitkeep
Normal file
0
include/device/.gitkeep
Normal file
0
include/device/.gitkeep
Normal file
0
include/exploit/.gitkeep
Normal file
0
include/exploit/.gitkeep
Normal file
15
include/itr4m.h
Normal file
15
include/itr4m.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef ITRM_H
|
||||
#define ITRM_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define ITR4M_VERSION "0.1.0"
|
||||
|
||||
#define ITR4M_OK 0
|
||||
#define ITR4M_ERR -1
|
||||
|
||||
#endif /* ITRM_H */
|
||||
0
include/util/.gitkeep
Normal file
0
include/util/.gitkeep
Normal file
0
payloads/.gitkeep
Normal file
0
payloads/.gitkeep
Normal file
0
scripts/.gitkeep
Normal file
0
scripts/.gitkeep
Normal file
0
src/activation/.gitkeep
Normal file
0
src/activation/.gitkeep
Normal file
0
src/bypass/.gitkeep
Normal file
0
src/bypass/.gitkeep
Normal file
0
src/device/.gitkeep
Normal file
0
src/device/.gitkeep
Normal file
0
src/exploit/.gitkeep
Normal file
0
src/exploit/.gitkeep
Normal file
0
src/exploit/payload/.gitkeep
Normal file
0
src/exploit/payload/.gitkeep
Normal file
0
src/util/.gitkeep
Normal file
0
src/util/.gitkeep
Normal file
Loading…
Add table
Add a link
Reference in a new issue