19 |
|
CXX = @CXX@ |
20 |
|
CFLAGS = @CFLAGS@ |
21 |
|
CXXFLAGS = @CXXFLAGS@ |
22 |
< |
CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ |
22 |
> |
CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ -I../slirp |
23 |
|
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\" |
24 |
|
LDFLAGS = @LDFLAGS@ |
25 |
|
LIBS = @LIBS@ |
31 |
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s |
32 |
|
INSTALL_DATA = @INSTALL_DATA@ |
33 |
|
|
34 |
+ |
SLIRP_CFLAGS = @SLIRP_CFLAGS@ |
35 |
+ |
SLIRP_SRCS = \ |
36 |
+ |
../slirp/bootp.c ../slirp/ip_output.c ../slirp/tcp_input.c \ |
37 |
+ |
../slirp/cksum.c ../slirp/mbuf.c ../slirp/tcp_output.c \ |
38 |
+ |
../slirp/debug.c ../slirp/misc.c ../slirp/tcp_subr.c \ |
39 |
+ |
../slirp/if.c ../slirp/sbuf.c ../slirp/tcp_timer.c \ |
40 |
+ |
../slirp/ip_icmp.c ../slirp/slirp.c ../slirp/tftp.c \ |
41 |
+ |
../slirp/ip_input.c ../slirp/socket.c ../slirp/udp.c |
42 |
+ |
SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=obj/%.o) |
43 |
+ |
|
44 |
|
## Files |
45 |
|
SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \ |
46 |
|
sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \ |
49 |
|
../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \ |
50 |
|
vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \ |
51 |
|
../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c \ |
52 |
< |
$(SYSSRCS) $(CPUSRCS) |
52 |
> |
$(SYSSRCS) $(CPUSRCS) $(SLIRP_SRCS) |
53 |
|
APP = BasiliskII |
54 |
|
|
55 |
|
## Rules |
114 |
|
depend dep: |
115 |
|
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |
116 |
|
|
117 |
+ |
$(OBJ_DIR)/%.o : ../slirp/%.c |
118 |
+ |
$(CC) $(CPPFLAGS) $(DEFS) $(SLIRP_CFLAGS) -c $< -o $@ |
119 |
|
$(OBJ_DIR)/%.o : %.c |
120 |
|
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@ |
121 |
|
$(OBJ_DIR)/%.o : %.cpp |