doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

Makefile (1145B)


      1 CC      = c89
      2 CFLAGS  = -g -Wall -Wpedantic -D_DEFAULT_SOURCE -Wno-deprecated-declarations
      3 LIBS    = -lXext -lX11 -lm
      4 LDFLAGS = ${LIBS} -L/usr/X11R6/lib
      5 
      6 SRC = doomstat.c \
      7 	i_system.c \
      8 	i_sound.c  \
      9 	i_video.c  \
     10 	i_net.c    \
     11 	i_main.c   \
     12 	tables.c   \
     13 	f_finale.c \
     14 	f_wipe.c   \
     15 	d_main.c   \
     16 	d_net.c    \
     17 	d_items.c  \
     18 	g_game.c   \
     19 	m_menu.c   \
     20 	m_misc.c   \
     21 	m_argv.c   \
     22 	m_bbox.c   \
     23 	m_fixed.c  \
     24 	m_swap.c   \
     25 	m_cheat.c  \
     26 	m_random.c \
     27 	am_map.c   \
     28 	p_ceilng.c \
     29 	p_doors.c  \
     30 	p_enemy.c  \
     31 	p_floor.c  \
     32 	p_inter.c  \
     33 	p_lights.c \
     34 	p_map.c    \
     35 	p_maputl.c \
     36 	p_plats.c  \
     37 	p_pspr.c   \
     38 	p_setup.c  \
     39 	p_sight.c  \
     40 	p_spec.c   \
     41 	p_switch.c \
     42 	p_mobj.c   \
     43 	p_telept.c \
     44 	p_tick.c   \
     45 	p_saveg.c  \
     46 	p_user.c   \
     47 	r_bsp.c    \
     48 	r_data.c   \
     49 	r_draw.c   \
     50 	r_main.c   \
     51 	r_plane.c  \
     52 	r_segs.c   \
     53 	r_things.c \
     54 	w_wad.c    \
     55 	wi_stuff.c \
     56 	v_video.c  \
     57 	st_lib.c   \
     58 	st_stuff.c \
     59 	hu_stuff.c \
     60 	hu_lib.c   \
     61 	s_sound.c  \
     62 	z_zone.c   \
     63 	info.c     \
     64 	lang.c     \
     65 	sounds.c
     66 
     67 
     68 OBJ = ${SRC:.c=.o}
     69 
     70 all: doom
     71 
     72 clean:
     73 	rm -f *.o doom
     74 
     75 doom: ${OBJ}
     76 	${CC} ${CFLAGS} ${LDFLAGS} ${OBJ} -o $@
     77 
     78 %.o: %.c
     79 	${CC} ${CFLAGS} -c $< -o $@