1 # Makefile for VirtualNascom
3 # CC must be an ANSI-C compiler
6 # full speed or debugging to taste
10 CFLAGS
= $(OPTIMIZE
) $(WARN
) $(shell sdl-config
--cflags)
12 VIRTUALNASCOM_OBJS
= simz80.o nascom.o xvirtualnascom.o
14 LIBS
=-lXpm
-lXt
-lX
-lm
16 ###### you should not need to change anything below this line ######
17 CWARN
= -ansi
-pedantic
-Wall
-Wshadow \
18 -Wpointer-arith
-Wnested-externs
-Winline
20 sdl-test
: sdl-test.o font.o simz80.o
21 $(CC
) $(shell sdl-config
--libs
) $^
-o
$@
23 sdl-nascom
: sdl-nascom.o simz80.o nascom.o font.o
24 $(CC
) $(shell sdl-config
--libs
) $^
-o
$@
26 ascii-nascom
: ascii-nascom.o simz80.o nascom.o
27 $(CC
) $(CFLAGS
) $^
-o
$@
30 -@echo Use \
`make linux\' or \`make solaris
\'
32 linux
: $(VIRTUALNASCOM_OBJS
)
33 $(CC
) $(CFLAGS
) $(VIRTUALNASCOM_OBJS
) -o xvirtualnascom \
34 -L
/usr
/X11R6
/lib
-lXpm
-lXt
36 solaris
: $(VIRTUALNASCOM_OBJS
)
37 $(CC
) $(CFLAGS
) $(VIRTUALNASCOM_OBJS
) -o xvirtualnascom \
42 perl
-w simz80.pl
>simz80.c
45 clean:; rm -f
*.o
*~ core
47 xvirtualnascom.o
: simz80.h xvirtualnascom.h
48 nascom.o
: simz80.h xvirtualnascom.h
49 simz80.o
: simz80.c simz80.h