metin2united
  • 0
Sign in to follow this  
lux9321

open gcc output flag ?

Question

3 answers to this question

  • 0

Change TARGET like this:

TARGET  = ../output/gamename

Also you can add new command like this:

Strip, delete old game and replace new game to share

install:
	strip -s ../output/gamename
	rm -rf /usr/game/share/gamename
	cp ../output/gamename /usr/game/share

 

  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0

TARGET  = /your/path/game

default: $(TARGET)


$(TARGET): ....
    @echo linking $(TARGET)....
    @$(linker).......  -o $(TARGET)

 

You are searching for the -o (output) argument.

No need to remove the old file, that's not windows, files are loaded in the ram without write locks

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.