Initial commit

This commit is contained in:
2023-05-31 13:53:05 +09:00
commit 1f1b0708fa
4 changed files with 34 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
setuptools
._setuptools
+21
View File
@@ -0,0 +1,21 @@
NAME = dasm
CFLAGS = -Wall -Wextra -Wshadow
LDFLAGS =
SRC = src/main.c
OBJ = $(SRC:%.c=%.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all
+7
View File
@@ -0,0 +1,7 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
packages = with pkgs; [
gcc
gnumake
];
}
+4
View File
@@ -0,0 +1,4 @@
int main()
{
}