-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.fbsd
37 lines (30 loc) · 907 Bytes
/
Makefile.fbsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PROG= digger
SRCS= main.c digger.c drawing.c sprite.c scores.c record.c sound.c \
newsnd.c ini.c input.c monster.c bags.c alpha.c vgagrafx.c \
title_gz.c digger_math.c digger_math.h monster_obj.c \
monster_obj.h digger_obj.c digger_obj.h bullet_obj.c \
bullet_obj.h keyboard.c keyboard.h
CFLAGS+= -DFREEBSD -DDIGGER_DEBUG
LDADD+= -lz -lm
SDL_CONFIG?= sdl2-config
.if !defined(SDL)
CFLAGS+= -D_VGL
LDADD+= -lvgl
SRCS+= fbsd_sup.c fbsd_vid.c fbsd_kbd.c fbsd_timer.c
.if defined(SOUND)
SRCS+= sdl_snd.c
SDL_CFLAGS!= ${SDL_CONFIG} --cflags
SDL_LDFLAGS!= ${SDL_CONFIG} --libs
CFLAGS+= -D_SDL_SOUND ${SDL_CFLAGS}
LDADD+= ${SDL_LDFLAGS}
.else # NO SOUND
SRCS+= fbsd_snd.c
.endif # SOUND
.else # SDL
CFLAGS+= -D_SDL `${SDL_CONFIG} --cflags`
LDADD+= `${SDL_CONFIG} --libs`
SRCS+= fbsd_sup.c sdl_vid.c sdl_timer.c sdl_kbd.c sdl_snd.c icon.c \
sdl_kbd.h
.endif
MAN1=
.include <bsd.prog.mk>