Files
86Box-probing-tools/clib/gcc.mk
2023-05-03 20:39:52 -03:00

31 lines
626 B
Makefile

#
# 86Box A hypervisor and IBM PC system emulator that specializes in
# running old operating systems and software designed for IBM
# PC systems and compatibles from 1981 through fairly recent
# system designs based on the PCI bus.
#
# This file is part of the 86Box Probing Tools distribution.
#
# Base makefile for compiling C-based tools with gcc.
#
#
#
# Authors: RichardG, <richardg867@gmail.com>
#
# Copyright 2023 RichardG.
#
VPATH = . ../clib
default: $(DEST)
%.o: %.c $(HEADERS)
gcc -I../clib -c $< -o $@
$(DEST): $(OBJS)
gcc $(OBJS) $(CFLAGS) -o $@
chmod +x $@ || true
clean:
-rm -f $(OBJS) $(DEST)