Skip to content

Commit

Permalink
tune Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
diekmann committed Mar 2, 2021
1 parent c5b980f commit 1c14c3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doom/linuxdoom-1.10/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@ all: $(O)/linuxxdoom

clean:
rm -f *.o *~ *.flc
rm -f linux/*
rm -f $(O)/*

$(O)/linuxxdoom: $(OBJS) $(O)/i_main.o
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(O)/i_main.o \
-o $(O)/linuxxdoom $(LIBS)

$(O)/%.o: %.c
mkdir -p linux
mkdir -p $(O)
$(CC) $(CFLAGS) -c $< -o $@

run: all
Xephyr :1 -ac -screen 320x200x8 &
Xephyr :1 -screen 320x200x8 -title DooM &
sleep 5 # ugly!! waiting for Xephyr to start.
DISPLAY=:1 ./linux/linuxxdoom
DISPLAY=:1 ./$(O)/linuxxdoom

#############################################################
#
Expand Down

0 comments on commit 1c14c3b

Please sign in to comment.