This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AS=nasm #Assembly compiler | |
ASFLAGS=-f elf -g #Assembly flags | |
LD=ld #Linker | |
LDFLAGS=-m elf_i386 #Linker flags | |
SOURCES=$(wildcard ./src/*.c) #Sources | |
OBJECTS=$(SOURCES:.asm=.o) #Object files | |
EXECUTABLE=test #Program name | |
#Check version | |
all: $(SOURCES) $(EXECUTABLE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JCC=javac -g | |
NAME=MainClass | |
MANIF=manifest.txt | |
RM = rm -rf | |
default: doJar | |
java -jar $(NAME).jar | |
doJar: doManifest | |
jar cvf0m $(NAME).jar $(MANIF) $(NAME).class (NAME2).class | |
doManifest: doClass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS := $(shell uname) | |
CC = gcc | |
CFLAGS = -std=gnu99 -Wall -I./headers | |
ifeq ($(OS),Darwin) | |
LDLIBS = -framework GLUT -framework OpenGL -framework Cocoa | |
else | |
LDLIBS = -lX11 -lglut -lGLU -lGL | |
endif |