# Step 01 -- Compile a minimal BOF (object file only, no linking)
#
# Usage:
#   make          -- build hello_bof.o with MinGW cross-compiler
#   make msvc     -- build hello_bof.obj with MSVC (run from VS prompt)
#   make clean    -- remove compiled objects

CC_MINGW = x86_64-w64-mingw32-gcc
CFLAGS   = -c

all: hello_bof.o

hello_bof.o: hello_bof.c beacon.h
	$(CC_MINGW) $(CFLAGS) hello_bof.c -o hello_bof.o

msvc: hello_bof.c beacon.h
	cl.exe /c /GS- hello_bof.c /Fo hello_bof.obj

clean:
	rm -f *.o *.obj
