Skip to content

Commit

Permalink
Produce proper cross-platform extension for executable
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkOates committed May 22, 2016
1 parent ecd108f commit c5016ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ ALLEGROFLARE_INCLUDE_DIR=$(ALLEGROFLARE_DIR)/include
OBJS=gui_score_editor main measure measure_grid music_engraver note playback_control playback_device_interface run_script

ifeq ($(OS), Windows_NT)
EXE_EXTENSION=.exe
OBJS += playback_device_win_midi
else
EXE_EXTENSION=
OBJS += playback_device_generic
endif

Expand All @@ -38,7 +40,7 @@ ALLEGROFLARE_LIBS=-l$(ALLEGROFLARE_LIB_NAME)
#


bin/fullscore.exe: $(OBJ_FILES)
bin/fullscore$(EXE_EXTENSION): $(OBJ_FILES)
g++ $(OBJ_FILES) -o $@ -L$(ALLEGRO_LIB_DIR) -L$(ALLEGROFLARE_LIB_DIR) $(ALLEGRO_LIBS) $(ALLEGROFLARE_LIBS)


Expand Down
9 changes: 9 additions & 0 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore everything in this directory
*
# Except this file and everything in the bin directory
!.gitignore
!data/
!data/*
!data/*/*
!data/*/*/*
!data/*/*/*/* # (4 levels should be enough)

0 comments on commit c5016ad

Please sign in to comment.