blob: c9af5eaaa8367f35ca0a78ba21b03591eb893a84 [file] [log] [blame]
CC = @CC@
CFLAGS = @CFLAGS@
XINCL = @x_includes@
TOPSRC = @top_srcdir@
DIVINCL = -I$(TOPSRC)/include
LD = @LD@
LDCOMBINEFLAGS = @LDCOMBINEFLAGS@
MODULE = miscemu
SRCS = dpmi.c emulate.c instr.c int10.c int13.c \
int1a.c int21.c int25.c int26.c int2a.c int2f.c int5c.c interrupts.c \
ioports.c
OBJS = $(SRCS:.c=.o)
.c.o:
$(CC) -c $(CFLAGS) $(XINCL) $(DIVINCL) -o $*.o $<
all: $(MODULE).o
$(MODULE).o: $(OBJS)
$(LD) $(LDCOMBINEFLAGS) $(OBJS) -o $(MODULE).o
depend:
sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
$(CC) $(DIVINCL) $(XINCL) -MM *.c >> tmp_make
mv tmp_make Makefile
clean:
rm -f *.o \#*\# *~ tmp_make
distclean: clean
rm -f Makefile
countryclean:
dummy:
### Dependencies: